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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx]
push edi
mov dword [esp + 0xa4], esi
call dword [eax + 0x10]
mov edi, eax
cmp edi, 0xffffffff
je 0x422185
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
call dword [edx + 0x10]
cmp eax, 0xffffffff
je 0x422185
shl edi, 8
or edi, eax
mov eax, edi
shr edi, 2
and edi, 3
mov dword [esp + 0x1c], edi
mov edi, eax
shr edi, 4
and edi, 3
mov dword [esp + 0x34], edi
mov edi, eax
shr edi, 6
and edi, 1
mov dword [esp + 0x30], edi
mov edi, eax
shr edi, 7
and edi, 1
mov edx, eax
mov dword [esp + 0x5c], edi
shr edx, 0xc
mov edi, eax
and edx, 1
shr edi, 8
mov ecx, eax
mov ebx, eax
and edi, 1
mov dword [esp + 0x44], edx
mov edx, eax
shr ecx, 0xa
shr ebx, 1
shr eax, 9
and edx, 1
mov dword [esp + 0x20], edi
and ecx, 3
and ebx, 1
and eax, 1
xor edi, edi
cmp edx, edi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x90], eax
jne 0x4221d7
cmp ecx, edi
mov ecx, dword [esi + 0x2c]
jne 0x4221a3
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp eax, 0xffffffff
je 0x422185
test al, al
mov dword [esp + 0x94], eax
jns 0x422100
or eax, 0xffffff00
mov dword [esp + 0x94], eax
lea ecx, [esp + 0xa8]
push ecx
mov ecx, esi
call fcn.004204b0
test eax, eax
je 0x422185
lea edx, [esp + 0x98]
push edx
mov ecx, esi
call fcn.004204b0
test eax, eax
je 0x422185
lea eax, [esp + 0xac]
push eax
mov ecx, esi
call fcn.004204b0
test eax, eax
je 0x422185
lea ecx, [esp + 0x9c]
push ecx
mov ecx, esi
call fcn.004204b0
test eax, eax
je 0x422185
lea edx, [esp + 0xb0]
push edx
mov ecx, esi
call fcn.004204b0
test eax, eax
je 0x422185
lea eax, [esp + 0xa0]
push eax
mov ecx, esi
call fcn.004204b0
test eax, eax
je 0x422185
lea ecx, [esp + 0xb4]
push ecx
mov ecx, esi
call fcn.004204b0
test eax, eax
jne 0x4221d7
mov edx, dword [esi]
push str.Unexpected_EOF_in_JBIG2_stream
mov ecx, esi
call dword [edx + 0x20]
push eax
call fcn.00405880
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ecx]
call dword [edx + 0x10]
cmp eax, 0xffffffff
je 0x422185
test al, al
mov dword [esp + 0x94], eax
jns 0x4221c4
or eax, 0xffffff00
mov dword [esp + 0x94], eax
lea eax, [esp + 0xa8]
push eax
mov ecx, esi
call fcn.004204b0
test eax, eax
je 0x422185
cmp ebx, edi
je 0x422239
cmp dword [esp + 0x44], edi
jne 0x422239
lea ecx, [esp + 0x88]
push ecx
mov ecx, esi
call fcn.004204b0
test eax, eax
je 0x422185
lea edx, [esp + 0x80]
push edx
mov ecx, esi
call fcn.004204b0
test eax, eax
je 0x422185
lea eax, [esp + 0x8c]
push eax
mov ecx, esi
call fcn.004204b0
test eax, eax
je 0x422185
lea ecx, [esp + 0x84]
push ecx
mov ecx, esi
call fcn.004204b0
test eax, eax
je 0x422185
lea edx, [esp + 0x7c]
push edx
mov ecx, esi
call fcn.00420520
test eax, eax
je 0x422185
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call fcn.00420520
test eax, eax
je 0x422185
push 0x10
call fcn.0043f7ed
add esp, 4
cmp eax, edi
je 0x42227c
mov ecx, eax
call fcn.0043ed30
mov dword [esp + 0x14], eax
jmp 0x422280
mov dword [esp + 0x14], edi
cmp dword [ebp + 0x14], edi
mov dword [esp + 0x3c], edi
jbe 0x4222d9
lea esp, [esp]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + edi*4]
push edx
mov ecx, esi
call fcn.00420180
mov ebx, eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
cmp eax, 1
jne 0x4222bb
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebx + 8]
add eax, ecx
mov dword [esp + 0x3c], eax
jmp 0x4222d1
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
cmp eax, 3
jne 0x4222d1
mov ecx, dword [esp + 0x14]
push ebx
call fcn.0043ed70
mov eax, dword [ebp + 0x14]
inc edi
cmp edi, eax
jb 0x422290
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x3c]
add eax, edi
xor edx, edx
mov ecx, 1
cmp eax, ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x64], eax
jbe 0x422301
shl ecx, 1
inc edx
cmp ecx, eax
jb 0x4222f6
mov dword [esp + 0x40], edx
lea ecx, [eax*4]
push ecx
call fcn.0043e620
xor edi, edi
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x14]
add esp, 4
cmp eax, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edi
jbe 0x422379
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [edx + eax*4]
push ecx
mov ecx, esi
call fcn.00420180
mov ebx, eax
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
cmp eax, 1
jne 0x422369
mov ecx, dword [ebx + 8]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x18], ebx
jbe 0x422369
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebx + 0xc]
mov edx, dword [edx + eax*4]
mov dword [ecx + edi*4], edx
mov edx, dword [ebx + 8]
inc edi
inc eax
cmp eax, edx
jb 0x422357
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x422326
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
xor edi, edi
xor eax, eax
cmp ecx, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x58], edi
mov ebx, 0x473f90
je 0x422432
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
jne 0x4223b4
mov dword [esp + 0x50], 0x474100
jmp 0x4223d3
cmp ecx, 1
jne 0x4223c3
mov dword [esp + 0x50], 0x474170
jmp 0x4223d3
mov eax, dword [edx]
mov ecx, dword [eax]
mov ecx, dword [ecx + 8]
mov eax, 1
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x34]
cmp ecx, edi
jne 0x4223e5
mov dword [esp + 0x28], 0x473fe0
jmp 0x422401
cmp ecx, 1
jne 0x4223f4
mov dword [esp + 0x28], 0x474060
jmp 0x422401
mov ecx, dword [edx]
mov ecx, dword [ecx + eax*4]
mov ecx, dword [ecx + 8]
inc eax
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x30], edi
jne 0x42240d
mov dword [esp + 0x58], ebx
jmp 0x42241a
mov ecx, dword [edx]
mov ecx, dword [ecx + eax*4]
mov ecx, dword [ecx + 8]
inc eax
mov dword [esp + 0x58], ecx
cmp dword [esp + 0x5c], edi
jne 0x422426
mov dword [esp + 0x60], ebx
jmp 0x422432
mov ecx, dword [edx]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x60], ecx
cmp edx, edi
je 0x42244c
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.0043ed60
push edi
call fcn.0043f7e8
add esp, 4
xor edi, edi
cmp dword [esp + 0x24], edi
je 0x422460
mov eax, dword [esi + 0x7c]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
jmp 0x4224ee
cmp dword [esp + 0x20], edi
je 0x422482
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x422482
mov ecx, dword [esp + 0x54]
mov edx, eax
mov eax, dword [edx + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.00420240
jmp 0x4224d8
mov edx, dword [esp + 0x54]
mov edi, dword [esi + 0x3c]
mov ebx, dword [edx*4 + 0x473f78]
cmp dword [edi + 4], ebx
jne 0x42249e
mov ecx, edi
call fcn.0041cfb0
jmp 0x4224d8
test edi, edi
je 0x4224b2
mov ecx, edi
call fcn.0043ed60
push edi
call fcn.0043f7e8
add esp, 4
push 8
call fcn.0043f7ed
add esp, 4
test eax, eax
je 0x4224d3
mov ecx, ebx
mov edx, 1
shl edx, cl
mov ecx, eax
push edx
call fcn.0041d0d0
jmp 0x4224d5
xor eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x40]
push eax
mov ecx, esi
call fcn.004203c0
mov ecx, dword [esi + 0x38]
call fcn.0041d1a0
xor edi, edi
cmp dword [esp + 0x38], edi
je 0x42256e
mov eax, dword [esp + 0x20]
test eax, eax
je 0x422518
mov eax, dword [esp + 0x18]
test eax, eax
je 0x422518
mov ecx, eax
mov edx, dword [ecx + 0x14]
mov eax, dword [esp + 0x44]
push edx
push eax
mov ecx, esi
call fcn.00420300
jmp 0x42256e
mov ecx, dword [esp + 0x44]
mov edi, dword [esi + 0x40]
mov ebx, dword [ecx*4 + 0x473f88]
cmp dword [edi + 4], ebx
jne 0x422534
mov ecx, edi
call fcn.0041cfb0
jmp 0x42256e
test edi, edi
je 0x422548
mov ecx, edi
call fcn.0043ed60
push edi
call fcn.0043f7e8
add esp, 4
push 8
call fcn.0043f7ed
add esp, 4
test eax, eax
je 0x422569
mov ecx, ebx
mov edx, 1
shl edx, cl
mov ecx, eax
push edx
call fcn.0041d0d0
jmp 0x42256b
xor eax, eax
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x24]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x34], ebx
je 0x42259a
cmp dword [esp + 0x38], ebx
jne 0x42259a
mov eax, dword [esp + 0x48]
lea ecx, [eax*4]
push ecx
call fcn.0043e620
add esp, 4
mov dword [esp + 0x34], eax
cmp dword [esp + 0x48], ebx
mov dword [esp + 0x10], ebx
jbe 0x4229e2
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4225c4
mov edx, dword [esp + 0x50]
mov ecx, dword [esi + 0x7c]
push edx
lea eax, [esp + 0x70]
push eax
call fcn.00420590
jmp 0x4225d5
mov ecx, dword [esi + 0x44]
push ecx
mov ecx, dword [esi + 0x38]
lea edx, [esp + 0x70]
push edx
call fcn.0041d400
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
add ebx, eax
mov eax, dword [esp + 0x10]
xor edi, edi
mov dword [esp + 0x30], eax
add eax, ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x14], edi
lea eax, [edx + eax*4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4226a1
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x7c]
lea edx, [esp + 0x74]
push edx
call fcn.00420590
test eax, eax
jne 0x4226ba
mov eax, dword [esp + 0x38]
xor edi, edi
cmp eax, edi
jne 0x4229d4
mov eax, dword [esp + 0x58]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esi + 0x7c]
call fcn.00420590
mov eax, dword [esi + 0x7c]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov eax, dword [esp + 0x20]
cmp eax, edi
jne 0x42293b
push 0x18
call fcn.0043f7ed
mov edi, eax
add esp, 4
test edi, edi
je 0x422901
mov eax, dword [esp + 0x14]
mov dword [edi + 8], eax
add eax, 7
sar eax, 3
mov dword [edi + 0x10], eax
imul eax, ebx
push eax
mov dword [edi + 4], 0
mov dword [edi], 0x456534
mov dword [edi + 0xc], ebx
call fcn.0043e620
add esp, 4
mov dword [edi + 0x14], eax
jmp 0x422903
mov eax, dword [esi + 0x48]
push eax
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esi + 0x38]
call fcn.0041d400
test eax, eax
je 0x4229d4
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x24]
add edi, ecx
test eax, eax
mov eax, dword [esp + 0x38]
je 0x4226f8
test eax, eax
jne 0x42278a
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov dword [edx + eax*4], edi
add dword [esp + 0x14], edi
mov eax, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x10], ecx
add eax, 4
jmp 0x4225fa
test eax, eax
je 0x4228c0
mov eax, dword [esi + 0x50]
push eax
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [esi + 0x38]
call fcn.0041d400
test eax, eax
je 0x4229d4
mov eax, dword [esp + 0x78]
cmp eax, 1
jne 0x422831
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4227a9
mov edx, dword [esp + 0x40]
mov ecx, dword [esi + 0x7c]
push edx
call fcn.0041d600
mov ecx, dword [esi + 0x7c]
mov dword [esp + 0x1c], eax
push 0x474b20
lea eax, [esp + 0x6c]
push eax
call fcn.00420590
push 0x474b20
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esi + 0x7c]
call fcn.00420590
mov ecx, dword [esi + 0x7c]
push 0x473f90
lea edx, [esp + 0x24]
push edx
call fcn.00420590
mov eax, dword [esi + 0x7c]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x38]
call fcn.0041d1a0
jmp 0x4227e0
mov ecx, dword [esp + 0x60]
push ecx
mov ecx, dword [esi + 0x7c]
lea edx, [esp + 0x7c]
push edx
call fcn.00420590
test eax, eax
je 0x422624
jmp 0x422719
mov eax, dword [esi + 0x78]
mov ecx, dword [esp + 0x40]
push eax
push ecx
mov ecx, dword [esi + 0x38]
call fcn.0041d3b0
mov edx, dword [esi + 0x64]
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x1c], eax
push edx
lea eax, [esp + 0x6c]
push eax
call fcn.0041d400
mov ecx, dword [esi + 0x68]
push ecx
mov ecx, dword [esi + 0x38]
lea edx, [esp + 0x78]
push edx
call fcn.0041d400
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + ecx*4]
lea edx, [esp + 0x80]
push edx
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x50]
push ecx
push eax
push 0
push edx
push ebx
push edi
mov ecx, esi
call fcn.0041f170
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x10], ecx
add eax, 4
jmp 0x4225fa
lea edx, [esp + 0x80]
push edx
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x8c]
push ecx
push edx
push 0x473f90
push 0x474b20
push 0x474b20
push 0x474b20
push 0x474b20
mov ecx, dword [esp + 0x4c]
push 0x474820
mov edx, dword [esp + 0x64]
push 0x4743f0
push 0x474200
push 0
push 1
push 0
push 0
push 0
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x84]
push 0
add ecx, edx
push ecx
push 0
push eax
mov eax, dword [esp + 0x7c]
push ebx
push edi
push 1
push eax
mov ecx, esi
call fcn.00420b60
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x10], ecx
add eax, 4
jmp 0x4225fa
mov ecx, dword [esp + 0x54]
push 0
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x9c]
push eax
push 0
push 0
push 0
push ecx
push ebx
push edi
push 0
mov ecx, esi
call fcn.0041e300
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov dword [edx], eax
inc ecx
mov eax, edx
mov dword [esp + 0x10], ecx
add eax, 4
jmp 0x4225fa
xor edi, edi
mov eax, dword [esp + 0x14]
add eax, 7
shr eax, 3
imul eax, ebx
test eax, eax
mov dword [esp + 0x18], edi
mov edi, dword [edi + 0x14]
mov dword [esp + 0x20], eax
jbe 0x422955
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
call dword [edx + 0x10]
mov byte [edi], al
mov eax, dword [esp + 0x1c]
inc edi
dec eax
mov dword [esp + 0x1c], eax
jne 0x422923
jmp 0x422955
push eax
mov eax, dword [esp + 0x18]
push edi
push edi
push edi
push edi
push edi
push edi
push ebx
push eax
push 1
mov ecx, esi
call fcn.0041e300
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x30]
cmp edi, dword [esp + 0x10]
mov dword [esp + 0x14], 0
jae 0x4229c4
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x5c]
lea eax, [ecx + edx*4]
mov dword [esp + 0x1c], eax
jmp 0x422980
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + edi*4]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push ebx
push edx
push 0
push eax
call fcn.004206e0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov dword [ecx], eax
mov eax, dword [edx + edi*4]
mov edx, dword [esp + 0x14]
add edx, eax
mov eax, dword [esp + 0x10]
inc edi
add ecx, 4
cmp edi, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
jb 0x422980
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4229d4
mov ecx, eax
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x48]
jb 0x4225a8
push 0x18
call fcn.0043f7ed
mov edi, eax
xor ebx, ebx
add esp, 4
cmp edi, ebx
je 0x422a26
mov eax, dword [esp + 0x7c]
mov ecx, dword [ebp + 8]
lea edx, [eax*4]
push edx
mov dword [edi + 4], ecx
mov dword [edi], 0x45653c
mov dword [edi + 8], eax
call fcn.0043e620
add esp, 4
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [esp + 0x28], edi
jmp 0x422a2a
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x64], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
jbe 0x422b5b
mov eax, dword [esp + 0x24]
test eax, eax
je 0x422a5c
mov ecx, dword [esi + 0x7c]
push 0x473f90
lea eax, [esp + 0x50]
push eax
call fcn.00420590
jmp 0x422a6d
mov ecx, dword [esi + 0x4c]
push ecx
mov ecx, dword [esi + 0x38]
lea edx, [esp + 0x50]
push edx
call fcn.0041d400
mov eax, dword [esp + 0x20]
test eax, eax
je 0x422b30
mov eax, dword [esp + 0x4c]
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x422b3e
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx + eax*4]
inc eax
push 0x18
mov dword [esp + 0x14], eax
call fcn.0043f7ed
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x422b04
mov dword [ebx + 4], 0
mov dword [ebx], 0x456534
mov edx, dword [edi + 8]
mov dword [ebx + 8], edx
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x10]
mov ecx, dword [ebx + 0xc]
imul ecx, eax
push ecx
mov dword [ebx + 0x10], eax
call fcn.0043e620
mov ecx, dword [ebx + 0xc]
imul ecx, dword [ebx + 0x10]
mov edx, ecx
mov dword [ebx + 0x14], eax
mov esi, dword [edi + 0x14]
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0xa4]
jmp 0x422b06
xor ebx, ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x30]
mov dword [ecx + eax*4], ebx
mov ecx, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x422a90
jmp 0x422b3e
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x4c]
add eax, edx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x20]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x64]
sete al
mov dword [esp + 0x20], eax
cmp dword [esp + 0x10], ecx
jb 0x422a40
mov ebx, dword [esp + 0x48]
test ebx, ebx
jbe 0x422b82
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
lea edi, [eax + edx*4]
mov edi, edi
mov ecx, dword [edi]
test ecx, ecx
je 0x422b7c
mov edx, dword [ecx]
push 1
call dword [edx]
add edi, 4
dec ebx
jne 0x422b70
mov eax, dword [esp + 0x2c]
push eax
call fcn.0043e6b0
mov eax, dword [esp + 0x38]
add esp, 4
test eax, eax
je 0x422ba0
push eax
call fcn.0043e6b0
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x422be7
mov eax, dword [esp + 0x90]
test eax, eax
je 0x422be7
mov ecx, dword [esi + 0x3c]
call fcn.0041d110
mov edi, dword [esp + 0x28]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x422beb
mov ecx, dword [esi + 0x40]
call fcn.0041d110
mov dword [edi + 0x14], eax
mov ecx, dword [esi + 0x24]
push edi
call fcn.0043ed70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [esp + 0x28]
mov ecx, dword [esi + 0x24]
push edi
call fcn.0043ed70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10