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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c6a83
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x521da0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov dword [esp + 0x10], ecx
xor eax, eax
or edx, 0xffffffff
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
cmp dword [ecx + 0x104], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x14], eax
jle 0x4226ee
lea esi, [ecx + 0xbc]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.00419600
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov edx, dword [esi + 0x18]
mov eax, dword [esi]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], edx
test edi, edi
je 0x422410
cmp edi, eax
je 0x422415
call fcn.00496353
cmp ebx, dword [esp + 0x30]
je 0x4226d5
jmp 0x422425
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x42250c
call fcn.00496353
cmp ebx, dword [edi + 0x18]
jne 0x42243c
call fcn.00496353
mov edx, dword [ebx + 0x20]
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov esi, dword [ebx + 0x10]
mov dword [esp + 0x5c], edx
mov edx, dword [ebx + 0x28]
mov dword [esp + 0x64], edx
mov edx, dword [edi + 0x11c]
sub edx, dword [edi + 0x118]
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x58], ecx
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x60], ecx
mov ecx, dword [ebx + 0x30]
sar edx, 2
mov dword [esp + 0x4c], esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
cmp esi, edx
jb 0x422497
call fcn.00496353
mov eax, dword [edi + 0x118]
mov esi, dword [eax + esi*4]
cmp dword [esi + 0x28c], 0
je 0x42266f
cmp dword [esi + 0x204], 0
je 0x42266f
lea eax, [esi + 0x9c]
push eax
lea edx, [esp + 0x40]
lea ecx, [esi + 0x1e8]
push edx
call fcn.00418e00
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
xor edi, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
test eax, eax
je 0x4224ed
cmp eax, dword [esp + 0x44]
je 0x4224f2
call fcn.00496353
mov edx, dword [esp + 0x28]
cmp edx, dword [esp + 0x48]
je 0x422513
lea ecx, [esp + 0x24]
inc edi
call fcn.0040e1b0
mov eax, dword [esp + 0x24]
jmp 0x4224e3
mov edi, dword [edi]
jmp 0x422432
cmp edi, 1
jne 0x42266b
cmp dword [ebp + 0xc], 0
jne 0x422536
lea eax, [esi + 0x9c]
push eax
lea ecx, [esi + 0x1e8]
call fcn.00412930
jmp 0x422546
mov eax, dword [esi + 0x9c]
push eax
lea ecx, [esi + 4]
call dword [0x4ce6f8]
mov edi, dword [eax]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x422580
call fcn.00496353
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp ebx, dword [ecx + 0x18]
jne 0x422569
call fcn.00496353
mov eax, dword [esp + 0x1c]
cmp dword [ebx + 0x14], edi
jne 0x422584
lea ecx, [esp + 0x1c]
call fcn.004180c0
mov edi, dword [esp + 0x10]
jmp 0x422678
mov ecx, dword [eax]
jmp 0x42255b
test eax, eax
jne 0x4225fa
call fcn.00496353
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x422599
call fcn.00496353
mov dword [ebx + 0x14], edi
mov ebx, dword [esi + 0x290]
test ebx, ebx
je 0x4225b7
mov ecx, ebx
call dword [0x4ce6e8]
push ebx
call fcn.00485196
add esp, 4
mov ebx, dword [ebp + 8]
push 0
push 0
push edi
mov ecx, ebx
call fcn.00411910
push 0
push edi
mov ecx, ebx
call fcn.00412680
push 0x60
mov dword [esp + 0x60], eax
call fcn.00485167
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x88], 1
test eax, eax
je 0x4225fe
mov ecx, eax
call dword [0x4ce6b0]
mov ebx, eax
jmp 0x422600
mov eax, dword [eax]
jmp 0x42258f
xor ebx, ebx
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x90], 0
mov dword [esp + 0x20], ebx
call fcn.00417890
mov ecx, dword [esi + 0x28c]
push 0
add ecx, 0x18
mov dword [esi + 0x290], ebx
call dword [0x4ce6a0]
mov ecx, dword [esi + 0x290]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.004124b0
mov ecx, dword [esi + 0x28c]
push 0
add ecx, 0x18
call dword [0x4ce6a0]
mov edx, dword [esi + 0x2b8]
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
push edx
push eax
call fcn.004177e0
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
call fcn.004180c0
mov ecx, dword [edi + 0xd4]
mov eax, dword [ecx + 4]
cmp byte [eax + 0x41], 0
mov dword [esp + 0x18], ecx
jne 0x4226aa
jmp 0x422690
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0xc]
jge 0x4226a1
mov dword [esp + 0x18], eax
mov eax, dword [eax]
jmp 0x4226a4
mov eax, dword [eax + 8]
cmp byte [eax + 0x41], 0
je 0x422690
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0xbc]
lea esi, [edi + 0xbc]
test eax, eax
je 0x4226c2
cmp eax, ecx
je 0x4226c7
call fcn.00496353
mov ebx, dword [esp + 0x20]
cmp ebx, dword [esp + 0x18]
jne 0x422421
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc eax
cmp eax, dword [edx + 0x104]
mov dword [esp + 0x14], eax
jl 0x4223e1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8