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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x549944]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 0x74]
mov edx, dword [eax + 0x24]
mov eax, 0xaaaaaaab
add edx, edx
mul edx
shr edx, 1
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov cl, byte [ebx + 0x44]
mov dword [esp + 0x18], edx
nop dword [eax]
mov al, byte [esi + 0xc]
movsx ecx, cl
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x420562
test al, al
je 0x4206d4
lea edx, [ebx + 0x7c]
mov ecx, esi
call fcn.00420340
mov edi, eax
test edi, edi
jne 0x4206d4
mov edx, dword [esp + 0x18]
mov cl, 1
mov byte [ebx + 0x44], 1
mov dword [ebx + 0x78], esi
mov esi, dword [ebx + 0x7c]
mov dword [ebx + 0x46], eax
mov dword [ebx + 0x74], esi
jmp 0x420520
test al, al
jne 0x420572
movzx eax, word [esi + 0x14]
cmp eax, edx
jle 0x4206d4
mov edi, dword [ebx + ecx*4 + 0x74]
movzx eax, word [ebx + ecx*2 + 0x46]
mov dword [esp + 0x14], eax
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x4205a0
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x4205a0
cmp dword [edx + 0x60], 0
je 0x4205d5
call fcn.004118e0
jmp 0x4205c9
mov eax, dword [edx + 0x28]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x42065e
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x4205c4
call fcn.00413410
jmp 0x4205c9
call fcn.00413340
mov dword [esp + 0xc], eax
test eax, eax
jne 0x42065e
cmp byte [esi + 3], 0
je 0x420612
cmp byte [esi + 0xc], 1
jne 0x420612
mov ax, word [esi + 0x1a]
cmp ax, word [esi + 0x16]
jne 0x420612
cmp dword [edi + 4], 1
je 0x420612
movzx eax, word [edi + 0x16]
cmp eax, dword [esp + 0x14]
jne 0x420612
lea eax, [esp + 0x24]
mov edx, esi
push eax
mov ecx, edi
call fcn.0041ec00
add esp, 4
mov dword [esp + 0xc], eax
jmp 0x42065e
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x20]
call fcn.0040d9d0
movzx ecx, byte [ebx + 3]
mov edx, dword [esp + 0x14]
and ecx, 1
push ecx
xor ecx, ecx
mov dword [esp + 0x24], eax
cmp dword [esp + 0x20], 1
sete cl
push ecx
push eax
mov ecx, edi
call fcn.0041ef40
mov dword [esp + 0x18], eax
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x420656
mov ecx, eax
call fcn.0040dae0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0x48]
mov byte [esi + 0xc], 0
test byte [edx + 0x1c], 0x20
je 0x4206aa
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
jmp 0x4206b1
mov ecx, edx
call fcn.0040d5a0
mov al, byte [ebx + 0x44]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
movsx esi, al
lea ecx, [eax - 1]
mov byte [ebx + 0x44], cl
mov esi, dword [ebx + esi*4 + 0x74]
mov dword [ebx + 0x74], esi
test edi, edi
je 0x420520
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4206e1
call fcn.0040dae0
mov ecx, dword [esp + 0x34]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret