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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x581980]
xor eax, esp
mov dword [esp + 0x50], eax
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 8], ecx
mov ecx, edi
mov dword [eax + 0xc], edx
call fcn.00412250
mov ecx, dword [edi + 0x154]
add ecx, dword [edi + 0x4b0]
mov esi, dword [edi + 0x158]
mov eax, dword [edi + 0x15c]
mov edx, dword [edi + 0x160]
add esi, dword [edi + 0x4b4]
sub eax, dword [edi + 0x4b8]
sub edx, dword [edi + 0x4bc]
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 0x4cc]
xor bl, bl
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], edx
test ecx, ecx
je 0x4229f4
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x4229f4
mov ecx, dword [edi + 0x4cc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
mov bl, 1
call edx
sub dword [ebp + 0x10], eax
mov ecx, dword [edi + 0x4d0]
test ecx, ecx
je 0x422a1c
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x422a1c
mov ecx, dword [edi + 0x4d0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x60]
call edx
sub dword [ebp + 0x14], eax
cmp dword [edi + 0x4d8], 0
je 0x422b58
mov eax, dword [ebp + 8]
mov esi, dword [edi + 0x710]
add esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
sub ecx, dword [edi + 0x718]
sub edx, dword [edi + 0x71c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
add eax, dword [edi + 0x714]
mov dword [esp + 0x2c], esi
mov esi, dword [edi + 0x4d8]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
call fcn.00421510
test bl, bl
je 0x422b58
mov ecx, dword [edi + 0x4cc]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x422a9c
cmp byte [edi + 0x4dc], 0
je 0x422b58
mov ecx, dword [edi + 0x4cc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
call eax
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
mov edx, dword [edi + 0x4d8]
add eax, ecx
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [edi]
mov dword [esp + 0x18], 0
mov esi, dword [edx + 0xc]
mov edx, dword [eax + 0x1c]
mov ecx, edi
call edx
mov eax, dword [eax + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x44]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x54]
push ecx
push 1
push 0
push 0
push eax
push 1
mov ecx, esi
call edx
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
cmp dword [esp + 0x18], eax
jle 0x422b36
mov ecx, dword [edi + 0x4cc]
mov edx, dword [ecx]
mov eax, dword [edx + 0xcc]
push 1
call eax
mov ecx, dword [edi + 0x4cc]
xor eax, eax
call fcn.0043c0e0
mov byte [edi + 0x4dc], 1
jmp 0x422b58
cmp byte [edi + 0x4dc], 0
je 0x422b58
mov ecx, dword [edi + 0x4cc]
mov edx, dword [ecx]
mov eax, dword [edx + 0xcc]
push 0
call eax
mov byte [edi + 0x4dc], 0
mov ecx, dword [edi + 0x4cc]
xor esi, esi
cmp ecx, esi
je 0x422bb2
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x422bb2
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x40], ecx
mov ecx, dword [edi + 0x4cc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
call eax
add eax, dword [ebp + 0x10]
mov ecx, dword [edi + 0x4cc]
mov ebx, dword [ecx]
sub esp, 0x10
mov edx, esp
mov dword [edx], esi
mov esi, dword [esp + 0x50]
mov dword [edx + 4], esi
mov dword [edx + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [edx + 0xc], eax
mov edx, dword [ebx + 0x34]
call edx
xor esi, esi
mov ecx, dword [edi + 0x4d0]
cmp ecx, esi
je 0x422c12
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x422c12
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [esp + 0x44], ecx
mov ecx, dword [edi + 0x4d0]
mov edx, dword [ecx]
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x60]
call eax
add eax, dword [ebp + 0x14]
mov ecx, dword [edi + 0x4d0]
mov ebx, dword [ecx]
sub esp, 0x10
mov edx, esp
mov dword [edx], esi
mov esi, dword [esp + 0x50]
mov dword [edx + 4], esi
mov esi, dword [esp + 0x54]
mov dword [edx + 8], esi
mov dword [edx + 0xc], eax
mov edx, dword [ebx + 0x34]
call edx
xor esi, esi
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0x4d0]
sub ebx, dword [ebp + 8]
mov dword [esp + 0x30], eax
cmp ecx, esi
je 0x422c46
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x422c46
mov eax, dword [edi + 0x4d0]
add ebx, dword [eax + 0x4a4]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
cmp dword [edi + 0x4a8], esi
jle 0x422d3f
mov ecx, dword [edi + 0x4a4]
mov edx, dword [esp + 0x20]
mov esi, dword [ecx + edx*4]
mov eax, dword [esi]
mov edx, dword [eax + 0xc8]
mov ecx, esi
call edx
test al, al
je 0x422d2a
mov eax, dword [esi]
mov edx, dword [eax + 0xf4]
mov ecx, esi
call edx
test al, al
jne 0x422d2a
mov ecx, dword [esp + 0x30]
mov eax, dword [esi]
mov eax, dword [eax + 0x114]
push ecx
push ebx
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call eax
cmp dword [esp + 0x10], 0
jne 0x422cbb
inc dword [esp + 0x18]
jmp 0x422cf3
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
cmp dword [esp + 0x10], eax
jge 0x422cd7
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
mov dword [esp + 0x10], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
cmp dword [esp + 0x10], eax
jle 0x422cf3
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
mov dword [esp + 0x10], eax
mov edx, dword [esi]
mov edx, dword [edx + 0x48]
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call edx
add eax, 8
mov dword [esp + 0x28], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call edx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
add edx, dword [esp + 0x10]
add edx, dword [eax]
add dword [esp + 0x1c], edx
inc dword [esp + 0x24]
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [edi + 0x4a8]
jl 0x422c62
mov eax, dword [esp + 0x24]
mov edx, dword [edi + 0x4c0]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
dec eax
imul edx, eax
mov dword [esp + 0x28], eax
xor eax, eax
add ecx, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
cmp esi, eax
jle 0x422d7e
mov eax, ebx
sub eax, ecx
cdq
idiv esi
xor ecx, ecx
test eax, eax
sets cl
dec ecx
and ecx, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 0x4d0]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x4c], ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x50], edx
mov dword [esp + 0x18], ebx
test ecx, ecx
je 0x422db9
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x422db9
mov eax, dword [edi + 0x4d0]
sub ebx, dword [eax + 0x4a8]
mov dword [esp + 0x18], ebx
cmp dword [edi + 0x4a8], 0
mov dword [esp + 0x20], 0
jle 0x422f9b
mov edi, edi
mov ecx, dword [edi + 0x4a4]
mov edx, dword [esp + 0x20]
mov esi, dword [ecx + edx*4]
mov eax, dword [esi]
mov edx, dword [eax + 0xc8]
mov ecx, esi
call edx
test al, al
je 0x422f86
mov eax, dword [esi]
mov edx, dword [eax + 0xf4]
mov ecx, esi
call edx
test al, al
je 0x422e17
mov ecx, dword [esp + 0x20]
mov eax, dword [edi]
mov edx, dword [eax + 0x1b0]
push ecx
mov ecx, edi
call edx
jmp 0x422f86
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esi]
mov edx, dword [edx + 0x114]
push ecx
push eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call edx
cmp dword [esp + 0x10], 0
mov ecx, esi
jne 0x422e59
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
call eax
cmp dword [esp + 0x10], eax
jge 0x422e73
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
mov dword [esp + 0x10], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
cmp dword [esp + 0x10], eax
jle 0x422e8f
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
mov dword [esp + 0x10], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x60]
mov ecx, esi
call eax
mov dword [esp + 0x14], eax
test eax, eax
jne 0x422eb4
mov eax, dword [ebp + 0x14]
sub eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
sub eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
test eax, eax
jns 0x422ebe
mov dword [esp + 0x14], 0
mov edx, dword [esi]
mov eax, dword [edx + 0x78]
mov ecx, esi
call eax
cmp dword [esp + 0x14], eax
jge 0x422eda
mov edx, dword [esi]
mov eax, dword [edx + 0x78]
mov ecx, esi
call eax
mov dword [esp + 0x14], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x80]
mov ecx, esi
call eax
cmp dword [esp + 0x14], eax
jle 0x422efc
mov edx, dword [esi]
mov eax, dword [edx + 0x80]
mov ecx, esi
call eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
lea edx, [ecx + ebx]
add ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], edx
mov edx, dword [ebp + 0xc]
add eax, edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x14]
add ecx, ebx
mov ebx, dword [esp + 0x3c]
add eax, edx
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
mov dword [esp + 0x48], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x50]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 0xc], ecx
mov ecx, esi
call edx
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0x4c0]
mov ebx, dword [esp + 0x18]
lea esi, [ecx + edx]
mov edx, dword [esp + 0x2c]
add esi, edx
add esi, eax
add ebx, esi
mov esi, dword [esp + 0x10]
add esi, ecx
add ecx, dword [esp + 0x10]
add esi, edx
add dword [esp + 0x1c], esi
add ecx, eax
sub dword [esp + 0x4c], ecx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [edi + 0x4a8]
jl 0x422dd0
mov eax, dword [edi + 0x4c0]
imul eax, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x4d0]
xor ebx, ebx
add esi, eax
cmp ecx, ebx
je 0x423179
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
mov edx, dword [ecx]
cmp esi, eax
mov eax, dword [edx + 0xc8]
jle 0x4230ad
call eax
test al, al
je 0x42305d
sub esi, dword [ebp + 0x10]
mov edi, dword [edi + 0x4d0]
add esi, dword [ebp + 8]
cmp dword [edi + 0x4a4], esi
je 0x423179
mov dword [edi + 0x4a4], esi
cmp esi, ebx
jge 0x423004
mov dword [edi + 0x4a4], ebx
mov eax, dword [edi + 0x4a4]
cmp dword [edi + 0x4a8], eax
jle 0x423018
mov dword [edi + 0x4a8], eax
mov ecx, dword [edi + 0x154]
mov edx, dword [edi]
mov edx, dword [edx + 0x34]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 0x158]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0x15c]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0x160]
mov dword [eax + 0xc], ecx
mov ecx, edi
call edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004f2889
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [edi + 0x4d0]
mov eax, dword [ecx]
mov edx, dword [eax + 0xcc]
push 1
call edx
sub esi, dword [ebp + 0x10]
mov ecx, dword [edi + 0x4d0]
add esi, dword [ebp + 8]
cmp dword [ecx + 0x4a4], esi
je 0x423119
mov dword [ecx + 0x4a4], esi
cmp esi, ebx
jge 0x423097
mov dword [ecx + 0x4a4], ebx
mov eax, dword [ecx + 0x4a4]
cmp dword [ecx + 0x4a8], eax
jle 0x4230ea
mov dword [ecx + 0x4a8], eax
jmp 0x4230ea
call eax
test al, al
je 0x423179
mov ecx, dword [edi + 0x4d0]
mov edx, dword [ecx]
mov eax, dword [edx + 0xcc]
push ebx
call eax
mov ecx, dword [edi + 0x4d0]
cmp dword [ecx + 0x4a4], ebx
je 0x423119
mov dword [ecx + 0x4a4], ebx
cmp dword [ecx + 0x4a8], ebx
jle 0x4230ea
mov dword [ecx + 0x4a8], ebx
mov esi, dword [ecx + 0x154]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [ecx + 0x158]
mov dword [eax + 4], esi
mov esi, dword [ecx + 0x15c]
mov dword [eax + 8], esi
mov esi, dword [ecx + 0x160]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x34]
call eax
mov ecx, dword [edi + 0x4d0]
cmp dword [ecx + 0x4a8], ebx
je 0x42316c
mov eax, dword [ecx + 0x4a4]
mov dword [ecx + 0x4a8], ebx
cmp eax, ebx
jge 0x42313d
mov dword [ecx + 0x4a8], eax
mov esi, dword [ecx + 0x154]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [ecx + 0x158]
mov dword [eax + 4], esi
mov esi, dword [ecx + 0x15c]
mov dword [eax + 8], esi
mov esi, dword [ecx + 0x160]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x34]
call eax
mov ecx, dword [edi + 0x4d0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
call eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f2889
mov esp, ebp
pop ebp
ret 0x10