Function at 0x40d076
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x446770
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x450180
call fcn.0041f090
push ecx
mov dword [esp + 0x7c], ebp
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x4501b8
call fcn.0041f090
or ebx, 0xffffffff
mov ecx, 0x4538d8
mov dword [esp + 0x7c], ebx
call fcn.004281e0
push 6
push 0x4501b0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], ebp
call fcn.0041f090
push 6
push 0x4503d0
lea ecx, [esp + 0x18]
mov dword [esp + 0x78], 1
call fcn.0041f090
lea ecx, [esp + 0x58]
mov byte [esp + 0x70], 2
call fcn.00420ce0
mov al, byte [esp + 0x80]
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x38], al
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov al, byte [0x453898]
mov byte [esp + 0x70], 4
cmp al, 1
jne 0x40d1ab
push 5
push 2
lea ecx, [esp + 0x18]
call fcn.0041f470
push 0x10
push 5
lea ecx, [esp + 0x18]
call fcn.0041f470
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x10]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.004010d0
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
cmp esi, eax
mov byte [esp + 0x70], 3
mov edi, eax
je 0x40d164
push ebp
mov ecx, esi
call fcn.004014a0
add esi, 4
cmp esi, edi
jne 0x40d151
mov esi, dword [esp + 0x3c]
push esi
call fcn.0043d8b0
add esp, 4
lea ecx, [esp + 0x58]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov byte [esp + 0x70], 2
call fcn.00420d00
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 1
call fcn.0041f130
lea ecx, [esp + 0x14]
mov dword [esp + 0x70], ebx
call fcn.0041f130
mov ax, 1
jmp 0x40d547
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x10]
push eax
push 2
call fcn.0041f470
mov ecx, dword [esp + 0x78]
push ecx
push 5
lea ecx, [esp + 0x1c]
call fcn.0041f470
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x88], esp
push edx
call fcn.0041f070
lea ecx, [esp + 0x5c]
call fcn.004213c0
lea eax, [esp + 0x38]
push 1
lea ecx, [esp + 0x5c]
push eax
push ecx
mov ecx, 0x453878
call fcn.00402d30
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
cmp ecx, ebp
jne 0x40d217
mov byte [esp + 0x84], 0
jmp 0x40d225
mov edx, edi
sub edx, ecx
sar edx, 2
mov byte [esp + 0x84], dl
cmp ax, 0xff9b
jne 0x40d290
cmp ecx, edi
mov byte [esp + 0x70], 3
mov esi, ecx
je 0x40d249
push ebp
mov ecx, esi
call fcn.004014a0
add esi, 4
cmp esi, edi
jne 0x40d236
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0043d8b0
add esp, 4
lea ecx, [esp + 0x58]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov byte [esp + 0x70], 2
call fcn.00420d00
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 1
call fcn.0041f130
lea ecx, [esp + 0x14]
mov dword [esp + 0x70], ebx
call fcn.0041f130
mov ax, 0xffcb
jmp 0x40d547
push ebp
call fcn.0041f460
cmp al, 0x7f
jne 0x40d304
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
cmp esi, edi
mov byte [esp + 0x70], 3
je 0x40d2be
push ebp
mov ecx, esi
call fcn.004014a0
add esi, 4
cmp esi, edi
jne 0x40d2ab
mov esi, dword [esp + 0x3c]
push esi
call fcn.0043d8b0
add esp, 4
lea ecx, [esp + 0x58]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov byte [esp + 0x70], 2
call fcn.00420d00
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 1
call fcn.0041f130
lea ecx, [esp + 0x14]
mov dword [esp + 0x70], ebx
call fcn.0041f130
xor ax, ax
jmp 0x40d547
mov al, byte [esp + 0x84]
mov byte [esp + 0x20], 0
test al, al
jbe 0x40d4e1
jmp 0x40d31d
or ebx, 0xffffffff
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
and edi, 0xff
push 1
shl edi, 2
lea ecx, [edi + edx]
call fcn.0041f460
xor cx, cx
mov cl, al
cmp cx, bp
mov dword [esp + 0x34], ecx
je 0x40d55c
mov al, byte [esp + 0x80]
xor esi, esi
mov byte [esp + 0x48], al
xor eax, eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ebp
xor ebx, ebx
cmp cx, bp
mov byte [esp + 0x70], 5
jle 0x40d493
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov esi, 3
mov edx, dword [esp + 0x3c]
lea ecx, [esi - 1]
push ecx
lea ecx, [edi + edx]
call fcn.0041f460
mov byte [esp + 0x30], al
mov eax, dword [esp + 0x3c]
push esi
lea ecx, [edi + eax]
call fcn.0041f460
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x78], al
push ecx
push 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 1
call fcn.0041f470
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x10]
push edx
push 5
call fcn.0041f470
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x10]
push eax
push 1
push ecx
lea ecx, [esp + 0x54]
call fcn.004010d0
cmp bx, bp
jle 0x40d429
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x1c]
lea ecx, [eax + ebp]
push ecx
lea ecx, [edx + eax]
call fcn.0041f400
test al, al
je 0x40d411
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x28]
add ebp, 4
dec eax
mov dword [esp + 0x28], eax
jne 0x40d3f1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40d463
xor ebp, ebp
mov al, byte [esp + 0x30]
test al, al
jne 0x40d43b
mov al, byte [esp + 0x78]
test al, al
je 0x40d465
jmp 0x40d446
cmp al, 0xff
jne 0x40d446
cmp byte [esp + 0x78], 0xff
je 0x40d465
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x10]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.004010d0
inc dword [esp + 0x24]
jmp 0x40d465
xor ebp, ebp
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc ebx
add esi, eax
inc edx
add ecx, 4
cmp bx, word [esp + 0x34]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
jl 0x40d382
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
cmp esi, eax
mov byte [esp + 0x70], 4
mov edi, eax
je 0x40d4b0
mov ecx, esi
call fcn.0041f130
add esi, 4
cmp esi, edi
jne 0x40d49e
mov esi, dword [esp + 0x4c]
push esi
call fcn.0043d8b0
mov al, byte [esp + 0x24]
mov cl, byte [esp + 0x88]
add esp, 4
inc al
cmp al, cl
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov byte [esp + 0x20], al
jb 0x40d31a
or ebx, 0xffffffff
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
cmp esi, edi
mov byte [esp + 0x70], 3
je 0x40d504
mov ecx, esi
call fcn.0041f130
add esi, 4
cmp esi, edi
jne 0x40d4f2
mov esi, dword [esp + 0x3c]
push esi
call fcn.0043d8b0
add esp, 4
lea ecx, [esp + 0x58]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov byte [esp + 0x70], 2
call fcn.00420d00
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 1
call fcn.0041f130
lea ecx, [esp + 0x14]
mov dword [esp + 0x70], ebx
call fcn.0041f130
mov ax, word [esp + 0x24]
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x64
ret 0x10
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
cmp esi, edi
mov byte [esp + 0x70], 3
je 0x40d580
push ebp
mov ecx, esi
call fcn.004014a0
add esi, 4
cmp esi, edi
jne 0x40d56d
mov esi, dword [esp + 0x3c]
push esi
call fcn.0043d8b0
add esp, 4
lea ecx, [esp + 0x58]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov byte [esp + 0x70], 2
call fcn.00420d00
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 1
call fcn.0041f130
lea ecx, [esp + 0x14]
mov dword [esp + 0x70], ebx
call fcn.0041f130
xor ax, ax
jmp 0x40d547