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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
push edi
mov dword [esi + 0xc], ebx
dec ebx
mov ebx, 0x421510
je 0x422603
cmp ecx, 0xffffffff
je 0x422563
lea ecx, [esi + 0x14]
call fcn.0040d7b0
mov ecx, dword [ebp + 0x10]
test al, al
je 0x422563
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
cmp eax, 0xfffffffe
je 0x422585
cmp eax, 0xffffffff
jne 0x4226aa
lea ecx, [esp + 0x60]
call fcn.004127a0
mov ecx, dword [esi + 4]
add ecx, 0x30
jmp 0x4225ed
mov edi, dword [esi + 4]
push ecx
lea ecx, [esp + 0x74]
lea edx, [edi + 0x78]
call fcn.00420f60
add esp, 4
lea ecx, [esp + 0x18]
push eax
call fcn.00420f30
mov eax, dword [esp + 0x18]
mov dword [edi + 0x80], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x84], eax
mov ecx, dword [esi + 4]
lea eax, [ecx + 0x80]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00421250
mov edx, dword [esi + 4]
mov ecx, dword [eax]
mov dword [edx + 0x80], ecx
lea ecx, [esp + 0x28]
mov eax, dword [eax + 4]
mov dword [edx + 0x84], eax
call fcn.004127a0
mov ecx, dword [esi + 4]
add ecx, 8
push eax
call fcn.00417cf0
lea ecx, [esi + 0x14]
call fcn.0040d7b0
test al, al
je 0x4226c4
cmp dword [esi + 8], 0
lea eax, [esi + 0x14]
mov ecx, dword [esi + 4]
push 0
push eax
push 0
mov eax, 0x4214e0
mov dword [esi + 0x1c], 0
push 0
cmove eax, ebx
push eax
call fcn.00421370
mov dword [esi + 0x10], eax
cmp eax, 0xfffffffe
jne 0x422692
mov edi, dword [esi + 4]
cmp dword [edi + 0x84], 0
je 0x422783
push dword [edi + 0x84]
push dword [edi + 0x80]
push dword [edi + 4]
call fcn.004aac00
mov ecx, dword [edi + 0x84]
xor ebx, ebx
add esp, 0xc
test eax, eax
cmovg ebx, eax
cmp ebx, ecx
jbe 0x42266f
xor edx, edx
xor ecx, ecx
jmp 0x422679
mov edx, dword [edi + 0x80]
add edx, ebx
sub ecx, ebx
mov eax, dword [esi + 4]
mov ebx, 0x421510
mov dword [eax + 0x80], edx
mov dword [eax + 0x84], ecx
jmp 0x4225f3
cmp eax, 0xffffffff
je 0x422710
cmp eax, 1
je 0x422710
cmp dword [ebp + 0x14], 0
jne 0x4226e9
mov ecx, dword [ebp + 0x10]
jmp 0x422543
cmp eax, 1
jne 0x4226c4
lea ecx, [esp + 0x50]
call fcn.004127a0
mov ecx, dword [esi + 4]
push eax
add ecx, 0x30
call fcn.00417cf0
mov ecx, dword [esi + 4]
lea eax, [esi + 0x14]
sub esp, 8
push eax
call fcn.004212a0
add esp, 4
add esi, 0x20
push eax
push esi
call fcn.00422de0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esi + 4]
push esi
push ecx
push 0
add edx, 0x78
lea ecx, [esp + 0x3c]
call fcn.00420f60
mov ecx, dword [esi]
add esp, 8
push eax
call fcn.00422bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [esi + 4]
lea ecx, [esp + 0x38]
call fcn.004127a0
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [edi + 0x30]
call fcn.00422bd0
mov ecx, eax
call fcn.00422ba0
test al, al
je 0x422771
lea ecx, [esp + 0x58]
call fcn.00421580
mov ecx, dword [esi + 4]
push eax
add ecx, 0x30
call fcn.00417cf0
mov ecx, dword [esi + 4]
push esi
lea eax, [ecx + 0x64]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.00421210
mov ecx, dword [esi]
mov edx, eax
call fcn.00422ce0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
lea ecx, [edi + 0x30]
call fcn.00422c70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x20]
push 1
push eax
call fcn.00418820
add esp, 8
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
push 1
call fcn.004101a0
push eax
lea ecx, [esp + 0x18]
call fcn.00419e90
mov ecx, dword [esi + 4]
add ecx, 8
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
cmp eax, dword [esp + 0x10]
jne 0x42281e
cmp edx, dword [esp + 0x14]
jne 0x42281e
lea eax, [esp + 0x20]
push 2
push eax
call fcn.00418820
add esp, 8
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
push 2
call fcn.004101a0
push eax
lea ecx, [esp + 0x18]
call fcn.00419e90
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push eax
add ecx, 8
call fcn.00417cf0
mov edx, dword [esi + 4]
lea ecx, [esp + 0x78]
push esi
add edx, 0x78
call fcn.00420f50
mov ecx, dword [esi]
push eax
call fcn.00422bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
call fcn.00422c70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10