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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
je 0x446064
cmp byte [edx + 8], 1
je 0x493f15
mov eax, dword [esi + 0x84]
test eax, eax
jne 0x45c4b3
lea eax, [esi + 0x78]
mov ebx, dword [ebp + 0x24]
push 0
push 0
push 0
push eax
push ebx
push edx
push ecx
mov ecx, esi
call fcn.0040a777
mov ecx, dword [ebp + 0xc]
mov edx, eax
mov eax, dword [ecx + 0x1c]
test eax, eax
mov dword [ebp - 8], edx
jne 0x411bfc
cmp dword [ebp + 0x1c], 3
jne 0x45c4c7
mov dl, 1
mov eax, dword [edi]
cmp eax, 1
je 0x411ef5
cmp eax, 2
je 0x4315a7
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x424075
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 0xc]
push ebx
push ecx
mov ecx, dword [ebp + 0x1c]
push 0
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push ecx
push edx
push eax
mov eax, dword [ebp - 0xc]
push eax
push eax
add edi, 0xc
push edi
lea ecx, [esi + 0x18]
call fcn.0040a957
cmp byte [ebp + 0x20], 0
mov eax, dword [ebp + 8]
je 0x40e35b
test eax, eax
jne 0x493ffb
push 0
push ebx
push eax
mov ecx, esi
mov dword [ebx + 0x64], eax
call fcn.0040e25a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x411c1c
mov edi, dword [ecx]
cmp edi, 0x13
je 0x493f27
cmp edi, 0x12
je 0x493f27
jmp 0x446072
push edx
push eax
mov ecx, esi
call fcn.00411c2d
mov dword [ebp - 8], eax
jmp 0x40e2ed
mov ecx, dword [edi + 0x24]
cmp dword [ecx], 2
jne 0x40e304
mov eax, dword [ebp + 0x14]
and eax, 0x400
xor edi, edi
or eax, edi
jne 0x45c4d7
test dl, dl
jne 0x40e31b
mov eax, dword [ecx + 4]
cmp dword [eax], 0
jne 0x446081
mov eax, dword [eax + 4]
add eax, 0xc
mov edx, dword [ecx + 8]
push edx
add ecx, 0xc
push ecx
push 0
push 0
push 0
push ebx
push eax
lea ecx, [esi + 0x18]
call fcn.0045fdb1
mov dword [ebp - 4], eax
jmp 0x40e31b
cmp dword [eax], 0x13
jne 0x40e31b
test dl, dl
jne 0x40e31b
jmp 0x493f88
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x40e30d
test dl, dl
jne 0x40e31b
jmp 0x493f5d
cmp dword [edx + 4], ecx
jne 0x40e2ab
jmp 0x493f06
mov edi, dword [ebp + 0x10]
jmp 0x411c1c
xor al, al
jmp 0x45c4f4
add eax, 4
jmp 0x411f2d
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ebx*4 - 4]
mov eax, dword [eax]
add eax, 0x64
jmp 0x40e2c6
cmp byte [ebx], 0x14
je 0x40e2f7
xor dl, dl
jmp 0x40e2f9
mov edx, dword [ecx + 4]
cmp dword [edx], edi
jne 0x493f46
mov ecx, dword [ebp + 0x18]
and ecx, 0x40
xor eax, eax
or eax, ecx
jne 0x44607a
mov al, 1
mov edx, dword [edx + 4]
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push 0
push edx
mov ecx, esi
call fcn.004939ed
jmp 0x40e31b
mov eax, dword [ebp + 0x14]
or dword [ebp + 0x18], 0x40
mov dword [ebp + 0x14], eax
jmp 0x40e2ab
mov eax, dword [ebp + 0x18]
or dword [ebp + 0x14], 0x8000
mov dword [ebp + 0x18], eax
jmp 0x40e2b5
add ecx, 4
push ecx
push 0x796f
push esi
call fcn.00463ce8
add esp, 0xc
call fcn.0044ab76
mov edi, dword [ebp + 0x10]
jmp 0x411c25
add edx, 4
push edx
push 0x76ed
push esi
call fcn.00463ce8
add esp, 0xc
jmp 0x40e31b
cmp dword [edi + 0x24], 0
lea ecx, [edi + 0x2c]
jne 0x493f69
lea ecx, [edi + 0xc]
mov edx, dword [eax]
push edx
add eax, 4
push eax
push 0
push 0
push 0
push ebx
push ecx
lea ecx, [esi + 0x18]
call fcn.0045fdb1
mov dword [ebp - 4], eax
jmp 0x40e31b
cmp byte [ebx], 0x12
jne 0x40e31b
mov edi, dword [eax + 0x24]
test edi, edi
je 0x40e31b
add ebx, 0x6c
mov dword [ebp + 0x10], ebx
mov eax, dword [edi]
test eax, eax
mov ecx, dword [esi + 0x14]
mov ebx, dword [ecx + 0x12c]
je 0x493fdf
mov eax, dword [eax + 0x1c]
cmp dword [eax], 0x47
jne 0x493fdf
mov edx, dword [eax + 0x20]
push edx
mov edx, dword [ebp + 0x24]
lea ecx, [eax + 0x24]
mov eax, dword [eax + 0x1c]
push ecx
push 0
push 0
push 0
push edx
add eax, 0xc
push eax
lea ecx, [esi + 0x18]
call fcn.0045fdb1
mov dword [eax + 0xc], ebx
jmp 0x493fe1
xor eax, eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edi, dword [edi + 4]
add ecx, 4
test edi, edi
mov dword [ebp + 0x10], ecx
jne 0x493fa2
mov ebx, dword [ebp + 0x24]
jmp 0x40e31b
push edi
push 0x77c4
push esi
call fcn.00463ce8
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24