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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x549944]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], ebx
xor ecx, ecx
mov dword [esp + 0x14], edi
mov esi, edx
mov dword [esp + 0xc], ecx
cmp byte [edi + 0xc], cl
je 0x413e90
test byte [esi + 0x1c], 4
mov ecx, dword [esi + 0x14]
je 0x413e61
mov eax, dword [ecx + 0x18]
cmp eax, dword [esi + 0x18]
jb 0x413e61
cmp dword [ecx + 0x60], 0
je 0x413e90
mov ecx, esi
call fcn.004118e0
jmp 0x413e88
mov eax, dword [ecx + 0x28]
test eax, eax
jne 0x414169
mov eax, dword [ecx + 0x94]
cmp eax, dword [ecx + 0x98]
mov ecx, esi
jbe 0x413e83
call fcn.00413410
jmp 0x413e88
call fcn.00413340
test eax, eax
jne 0x414169
test byte [esi + 0x1c], 2
je 0x413ea5
mov ecx, esi
call fcn.004118e0
test eax, eax
jne 0x414169
movzx eax, word [esi + 0x1c]
test al, 8
je 0x413eba
cmp dword [ebp + 0xc], 0
jne 0x413eba
mov ecx, dword [esi + 0x18]
mov dword [esp + 0xc], ecx
and eax, 0xfff7
mov word [esi + 0x1c], ax
mov eax, dword [edi + 0xd0]
push 0
push ebx
push dword [eax + 0x2c]
call dword [0x54a4a4]
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x413ee5
xor ebx, ebx
jmp 0x413f88
mov ebx, dword [ecx + 4]
mov eax, dword [edi + 0xd0]
cmp dword [ebx], 0
jne 0x413f06
mov edx, dword [esp + 0x18]
push ecx
mov ecx, eax
call fcn.0040d520
add esp, 4
mov ebx, eax
jmp 0x413f0d
inc dword [eax + 0xc]
inc word [ebx + 0x1e]
test ebx, ebx
je 0x413f88
mov ax, word [ebx + 0x1c]
and ax, 8
or word [esi + 0x1c], ax
cmp byte [edi + 0xc], 0
je 0x413f30
mov edx, dword [edi + 0x18]
mov ecx, ebx
inc edx
call fcn.0040d750
jmp 0x413f88
test byte [ebx + 0x1c], 2
je 0x413f6f
mov ecx, dword [ebx + 0xc]
cmp dword [ecx + 8], ebx
jne 0x413f44
mov eax, dword [ebx + 0x24]
mov dword [ecx + 8], eax
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
test edx, edx
je 0x413f53
mov dword [edx + 0x24], eax
jmp 0x413f56
mov dword [ecx + 4], eax
mov edx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x20]
test edx, edx
je 0x413f65
mov dword [edx + 0x20], eax
jmp 0x413f6f
mov dword [ecx], eax
test eax, eax
jne 0x413f6f
mov byte [ecx + 0x21], 2
mov eax, dword [ebx + 0xc]
push 1
dec dword [eax + 0xc]
mov eax, dword [ebx + 0xc]
push dword [ebx]
push dword [eax + 0x2c]
call dword [0x54a4a8]
add esp, 0xc
mov eax, dword [esi + 0x18]
mov ecx, esi
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
call fcn.0040d750
movzx eax, word [esi + 0x1c]
test al, 0x11
je 0x413fec
and eax, 0xffef
mov word [esi + 0x1c], ax
test al, 1
je 0x413fec
xor eax, 3
mov dword [esi + 0x24], 0
mov word [esi + 0x1c], ax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov dword [esi + 0x20], ecx
test ecx, ecx
je 0x413fce
mov dword [ecx + 0x24], esi
jmp 0x413fdb
cmp byte [eax + 0x20], 0
mov dword [eax + 4], esi
je 0x413fdb
mov byte [eax + 0x21], 1
cmp dword [eax + 8], 0
mov dword [eax], esi
jne 0x413fec
test byte [esi + 0x1c], 8
jne 0x413fec
mov dword [eax + 8], esi
cmp byte [edi + 0xc], 0
je 0x414051
test ebx, ebx
je 0x414051
mov edx, dword [esp + 0x10]
mov ecx, ebx
call fcn.0040d750
test byte [ebx + 0x1c], 0x20
je 0x41404a
mov eax, dword [ebx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [ebx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], ebx
push dword [ebx + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [ebx + 0x18]
mov edi, dword [esi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.004e59d0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x24]
add esp, 0x10
jmp 0x414051
mov ecx, ebx
call fcn.0040d5a0
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x414167
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi + 0xc8]
push ebx
push edi
call eax
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4140a3
cmp ebx, dword [edi + 0x1c]
ja 0x41408f
push dword [edi + 0xcc]
mov ecx, dword [edi + 0x38]
mov edx, ebx
call fcn.0040d0c0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
or word [eax + 0x1c], 8
mov edx, dword [esp + 0x18]
movzx eax, word [edx + 0x1c]
test al, 0x11
je 0x414109
and eax, 0xffef
movzx ecx, ax
mov word [edx + 0x1c], ax
test al, 1
je 0x414105
mov eax, dword [edx + 0xc]
xor ecx, 3
mov word [edx + 0x1c], cx
mov dword [edx + 0x24], 0
mov ecx, dword [eax]
mov dword [edx + 0x20], ecx
test ecx, ecx
je 0x4140e7
mov dword [ecx + 0x24], edx
jmp 0x4140f4
cmp byte [eax + 0x20], 0
mov dword [eax + 4], edx
je 0x4140f4
mov byte [eax + 0x21], 1
cmp dword [eax + 8], 0
mov dword [eax], edx
jne 0x414105
test byte [edx + 0x1c], 8
jne 0x414105
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
test byte [edx + 0x1c], 0x20
je 0x414160
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004e59d0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.0040d5a0
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret