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

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], ebx
lea esi, [edi + 0xc3c]
mov ecx, esi
call fcn.0040a270
test eax, eax
jle 0x4118f2
push ebx
mov ecx, esi
call fcn.0040a280
mov esi, eax
cmp dword [esi + 0x1886], 2
jne 0x4118d8
mov eax, dword [esi + 0x3ed]
mov cl, byte [eax + 8]
test cl, cl
je 0x4116cb
mov eax, dword [esi + 0x1975]
cmp ebx, 3
jl 0x4118d8
cmp eax, 1
je 0x4118d8
cmp eax, 5
je 0x4118d8
mov ecx, esi
call fcn.004be320
cmp eax, 0xffffffff
jne 0x4118d8
mov ecx, dword [esi + 0x3ed]
call fcn.00433120
lea ecx, [esp + 0x78]
push esi
push ecx
mov ecx, edi
call fcn.0040fa60
sub esp, 0xc
mov dword [esp + 0x28], eax
mov edx, eax
mov eax, dword [eax]
mov ecx, esp
push 0xffffffffffffffff
mov edi, dword [edx]
push 2
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
mov ebp, dword [edx + 4]
mov eax, dword [eax + 4]
mov ebx, dword [edx + 8]
mov edx, dword [esi]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov ecx, esi
call dword [edx + 0x1c]
sub esp, 0xc
mov edx, dword [esi]
mov eax, esp
mov ecx, esi
push 0xffffffffffffffff
push 8
mov dword [eax], edi
mov dword [eax + 4], ebp
mov dword [eax + 8], ebx
call dword [edx + 0x1c]
lea ecx, [esi + 0xf9]
sub esp, 0xc
mov edx, esp
mov eax, dword [ecx]
push 0xffffffffffffffff
mov dword [edx], eax
push 1
mov eax, dword [ecx + 4]
push 0
mov dword [edx + 4], eax
push 0x14
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
mov ecx, dword [esi + 0x3ed]
call fcn.00433030
mov edx, dword [esp + 0x14]
mov byte [esp + 0x13], 0
lea esi, [edx + 0xb94]
mov ecx, esi
call fcn.0040a270
test eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
jle 0x41180e
jmp 0x411784
mov eax, dword [esp + 0x1c]
cmp eax, 1
jle 0x41180e
mov al, byte [esp + 0x13]
test al, al
jne 0x41180e
mov eax, dword [esp + 0x18]
mov ecx, esi
push eax
call fcn.0040a280
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x24]
test al, al
jne 0x4117f9
mov eax, dword [esp + 0x18]
mov ecx, esi
push eax
mov byte [esp + 0x17], 1
call fcn.0040a280
sub esp, 0xc
mov edx, dword [eax]
mov ecx, esp
push 0xffffffffffffffff
push 2
mov dword [ecx], edi
mov dword [ecx + 4], ebp
mov dword [ecx + 8], ebx
mov ecx, eax
call dword [edx + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, esi
push edx
call fcn.0040a280
sub esp, 0xc
mov edx, dword [eax]
mov ecx, esp
push 0xffffffffffffffff
push 8
mov dword [ecx], edi
mov dword [ecx + 4], ebp
mov dword [ecx + 8], ebx
mov ecx, eax
call dword [edx + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x411780
mov edx, dword [esp + 0x14]
mov byte [esp + 0x13], 0
lea esi, [edx + 0xe88]
mov ecx, esi
call fcn.0040a270
mov ecx, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
call fcn.0040a270
test eax, eax
jle 0x4118d0
cmp dword [esp + 0x1c], 1
jle 0x4118d0
mov al, byte [esp + 0x13]
test al, al
jne 0x4118d0
mov eax, dword [esp + 0x18]
mov ecx, esi
push eax
call fcn.0040a280
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x24]
test al, al
jne 0x4118b6
mov eax, dword [esp + 0x18]
mov ecx, esi
push eax
mov byte [esp + 0x17], 1
call fcn.0040a280
sub esp, 0xc
mov edx, dword [eax]
mov ecx, esp
push 0xffffffffffffffff
push 2
mov dword [ecx], edi
mov dword [ecx + 4], ebp
mov dword [ecx + 8], ebx
mov ecx, eax
call dword [edx + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, esi
push edx
call fcn.0040a280
sub esp, 0xc
mov edx, dword [eax]
mov ecx, esp
push 0xffffffffffffffff
push 8
mov dword [ecx], edi
mov dword [ecx + 4], ebp
mov dword [ecx + 8], ebx
mov ecx, eax
call dword [edx + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, esi
inc edx
mov dword [esp + 0x18], edx
call fcn.0040a270
cmp dword [esp + 0x18], eax
jl 0x41183f
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
lea esi, [edi + 0xc3c]
inc ebx
mov ecx, esi
mov dword [esp + 0x20], ebx
call fcn.0040a270
cmp ebx, eax
jl 0x41166b
lea esi, [edi + 0x45c]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x20], ebx
call fcn.0040a270
test eax, eax
jle 0x411e0f