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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6072d8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x767500]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x5c]
call fcn.00424070
xor ecx, ecx
mov dword [esp + 0x80], ecx
mov edx, 2
mov eax, 1
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov edx, 5
cmp esi, edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x58], ecx
mov ecx, 6
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
jg 0x42262e
cmp esi, eax
jge 0x422634
mov dword [esp + 0x14], eax
jmp 0x422638
mov dword [esp + 0x14], edx
jmp 0x422638
mov dword [esp + 0x14], esi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
call fcn.004213a0
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
mov ebx, eax
cmp esi, eax
jbe 0x42265f
call fcn.0055d9b4
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x5c]
cmp esi, eax
jbe 0x42266c
call fcn.0055d9b4
mov ecx, dword [esp + 0x5c]
push ebx
push edi
push esi
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x70]
call fcn.004245f0
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 0x26e0]
xor esi, esi
lea eax, [esi + 1]
lea ecx, [ebx + 0x26e4]
mov edx, dword [ecx]
cmp edi, edx
jge 0x4226a0
mov esi, eax
mov edi, edx
inc eax
add ecx, 4
cmp eax, 3
jl 0x422696
xor eax, eax
lea ecx, [ebx + 0x21f0]
mov edx, eax
sar edx, 4
cmp edx, esi
je 0x4226c0
mov dword [ecx], 0
inc eax
add ecx, 0x14
cmp eax, 0x30
jl 0x4226b1
lea esi, [ebx + 0x25b0]
mov eax, esi
mov ecx, 7
mov edx, dword [eax]
neg edx
mov dword [eax], edx
add eax, 0x14
sub ecx, 1
jne 0x4226d6
mov eax, dword [esp + 0x14]
mov edi, dword [esp + eax*4 + 0x1c]
test edi, edi
jle 0x422711
cmp edi, 2
mov eax, 2
jg 0x4226fc
mov eax, edi
push eax
push 1
lea ecx, [esp + 0x64]
push ecx
push ebx
call fcn.00421650
sub edi, 2
test edi, edi
jg 0x4226f0
lea eax, [ebx + 0x21f0]
mov ecx, 0x30
lea esp, [esp]
mov dword [eax], 0
add eax, 0x14
sub ecx, 1
jne 0x422720
mov eax, esi
mov ecx, 7
mov edx, dword [eax]
neg edx
mov dword [eax], edx
add eax, 0x14
sub ecx, 1
jne 0x422735
mov eax, dword [esp + 0x14]
mov esi, dword [esp + eax*4 + 0x30]
xor edi, edi
cmp esi, edi
jle 0x422761
push 1
push 3
lea ecx, [esp + 0x64]
push ecx
push ebx
call fcn.00421650
dec esi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + edx*4 + 0x44]
push eax
push 2
lea ecx, [esp + 0x64]
push ecx
push ebx
call fcn.00421650
cmp esi, edi
jle 0x42279f
lea eax, [ebx + 0x2600]
mov ecx, 3
mov dword [eax], edi
add eax, 0x14
sub ecx, 1
jne 0x422786
push 1
push 3
lea edx, [esp + 0x64]
push edx
push ebx
call fcn.00421650
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x5c]
push eax
push ecx
push ebx
call fcn.00421900
mov eax, dword [esp + 0x68]
cmp eax, edi
je 0x4227bf
push eax
call fcn.0055d56e
add esp, 4
mov edx, dword [esp + 0x5c]
push edx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
call fcn.0055d56e
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8