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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov edi, dword [esp + 0x70]
mov ebx, eax
lea esi, [esp + 0x3c]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call fcn.00422a00
cmp eax, ebp
jne 0x4234c1
mov eax, dword [esp + 0x40]
cmp eax, ebp
ja 0x423038
mov esi, dword [esp + 0x3c]
cmp esi, 0x80000000
jae 0x423038
cmp eax, ebp
ja 0x423038
cmp esi, 0x4000000
jb 0x423045
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov dword [edi], esi
cmp esi, ebp
jne 0x423170
mov dword [edi + 4], ebp
cmp esi, ebp
jbe 0x423072
xor ecx, ecx
mov edx, esi
lea ebx, [ebx]
mov eax, dword [edi + 4]
lea eax, [ecx + eax + 0x18]
add ecx, 0x20
dec edx
mov dword [eax], ebp
mov dword [eax + 4], ebp
jne 0x423060
mov dword [esp + 0x28], ebp
cmp esi, ebp
jbe 0x423374
mov dword [esp + 0x1c], ebp
mov eax, dword [edi + 4]
add eax, dword [esp + 0x1c]
mov esi, dword [ebx + 4]
mov dword [esp + 0x18], eax
cmp esi, ebp
je 0x423367
mov eax, dword [ebx]
mov cl, byte [eax]
mov edx, dword [esp + 0x18]
dec esi
inc eax
mov byte [esp + 0x17], cl
xor edi, edi
and cl, 0xf
mov dword [ebx + 4], esi
mov dword [ebx], eax
mov byte [edx + 0x17], cl
movzx ebp, cl
je 0x4230d2
test esi, esi
je 0x423367
mov cl, byte [eax]
mov byte [edi + edx + 8], cl
dec esi
inc eax
inc edi
mov dword [ebx + 4], esi
mov dword [ebx], eax
cmp edi, ebp
jb 0x4230b8
test byte [esp + 0x17], 0x10
je 0x423195
lea esi, [esp + 0x44]
call fcn.00422a00
xor ebp, ebp
cmp eax, ebp
jne 0x4234c1
mov ecx, dword [esp + 0x48]
cmp ecx, ebp
ja 0x423038
mov eax, dword [esp + 0x44]
jb 0x423122
cmp eax, 0x80000000
jae 0x423038
cmp ecx, ebp
ja 0x423038
jb 0x423122
cmp eax, 0x4000000
jae 0x423038
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x4c]
mov dword [edi], eax
call fcn.00422a00
cmp eax, ebp
jne 0x4234c1
mov ecx, dword [esp + 0x50]
cmp ecx, ebp
ja 0x423038
mov eax, dword [esp + 0x4c]
jb 0x42316b
cmp eax, 0x80000000
jae 0x423038
cmp ecx, ebp
ja 0x423038
jb 0x42316b
cmp eax, 0x4000000
jae 0x423038
mov dword [edi + 4], eax
jmp 0x4231a4
mov eax, esi
shl eax, 5
push eax
call dword [esp + 0x78]
add esp, 4
mov dword [edi + 4], eax
cmp eax, ebp
jne 0x423052
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov dword [edx], 1
mov dword [edx + 4], 1
xor ebp, ebp
test byte [esp + 0x17], 0x20
je 0x423204
lea esi, [esp + 0x34]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
call fcn.00422a00
cmp eax, ebp
jne 0x4234c1
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
mov dword [esi + 0x18], edi
cmp edi, ebp
jne 0x4231d8
mov dword [esi + 0x1c], ebp
jmp 0x4231ee
push edi
call dword [esp + 0x78]
xor edx, edx
add esp, 4
cmp eax, ebp
setne dl
mov dword [esi + 0x1c], eax
cmp edx, ebp
je 0x423188
mov eax, dword [esi + 0x1c]
push eax
mov eax, ebx
call fcn.00422980
add esp, 4
cmp eax, ebp
jne 0x4234c1
test byte [esp + 0x17], 0x80
je 0x423337
nop
mov esi, dword [ebx + 4]
cmp esi, ebp
je 0x423367
mov eax, dword [ebx]
mov cl, byte [eax]
mov dl, cl
and dl, 0xf
lea edi, [eax + 1]
movzx eax, dl
cdq
mov dword [esp + 0x68], edx
dec esi
xor edx, edx
mov dword [ebx + 4], esi
mov byte [esp + 0x17], cl
mov dword [ebx], edi
cmp dword [esp + 0x68], edx
ja 0x423367
jb 0x42324f
cmp eax, esi
ja 0x423367
sub esi, eax
add edi, eax
mov dword [ebx + 4], esi
mov dword [ebx], edi
test cl, 0x10
je 0x4232ef
lea esi, [esp + 0x54]
call fcn.00422a00
xor ebp, ebp
cmp eax, ebp
jne 0x4234c1
mov ecx, dword [esp + 0x58]
cmp ecx, ebp
ja 0x423038
mov eax, dword [esp + 0x54]
jb 0x4232a6
cmp eax, 0x80000000
jae 0x423038
cmp ecx, ebp
ja 0x423038
jb 0x4232a6
cmp eax, 0x4000000
jae 0x423038
lea esi, [esp + 0x5c]
call fcn.00422a00
cmp eax, ebp
jne 0x4234c1
mov ecx, dword [esp + 0x60]
cmp ecx, ebp
ja 0x423038
mov eax, dword [esp + 0x5c]
jb 0x4232e9
cmp eax, 0x80000000
jae 0x423038
cmp ecx, ebp
ja 0x423038
jb 0x4232e9
cmp eax, 0x4000000
jae 0x423038
mov cl, byte [esp + 0x17]
jmp 0x4232f1
xor ebp, ebp
test cl, 0x20
je 0x42332f
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.00422a00
cmp eax, ebp
jne 0x4234c1
mov eax, dword [ebx + 4]
xor ecx, ecx
cmp dword [esp + 0x30], ecx
ja 0x423367
mov ecx, dword [esp + 0x2c]
jb 0x423324
cmp ecx, eax
ja 0x423367
sub eax, ecx
add dword [ebx], ecx
mov cl, byte [esp + 0x17]
mov dword [ebx + 4], eax
test cl, cl
js 0x423210
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x28]
add dword [esp + 0x24], ecx
add dword [esp + 0x20], edx
add dword [esp + 0x1c], 0x20
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x3c]
jae 0x423374
mov edi, dword [esp + 0x70]
xor ebp, ebp
jmp 0x423082
mov eax, 6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x70]
dec esi
xor ebp, ebp
mov dword [esp + 0x28], esi
mov dword [edi + 8], esi
cmp esi, ebp
jne 0x42338f
mov dword [edi + 0xc], ebp
jmp 0x4233a9
lea eax, [esi*8]
push eax
call dword [esp + 0x78]
add esp, 4
mov dword [edi + 0xc], eax
cmp eax, ebp
je 0x423188
cmp esi, ebp
jbe 0x423451
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0xc]
lea esi, [esp + 0x5c]
lea edi, [edx + ebp*8]
call fcn.00422a00
test eax, eax
jne 0x4234c1
mov ecx, dword [esp + 0x60]
test ecx, ecx
ja 0x423038
mov eax, dword [esp + 0x5c]
jb 0x4233fe
cmp eax, 0x80000000
jae 0x423038
test ecx, ecx
ja 0x423038
jb 0x4233fe
cmp eax, 0x4000000
jae 0x423038
lea esi, [esp + 0x54]
mov dword [edi], eax
call fcn.00422a00
test eax, eax
jne 0x4234c1
mov ecx, dword [esp + 0x58]
test ecx, ecx
ja 0x423038
mov eax, dword [esp + 0x54]
jb 0x423443
cmp eax, 0x80000000
jae 0x423038
test ecx, ecx
ja 0x423038
jb 0x423443
cmp eax, 0x4000000
jae 0x423038
inc ebp
mov dword [edi + 4], eax
cmp ebp, dword [esp + 0x28]
jb 0x4233b1
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x70]
mov edi, ebp
sub edi, dword [esp + 0x28]
mov dword [esi + 0x10], edi
jne 0x4234c9
mov dword [esi + 0x14], 0
xor ebp, ebp
test edi, edi
je 0x4234bf
lea esi, [esp + 0x5c]
call fcn.00422a00
test eax, eax
jne 0x4234c1
mov ecx, dword [esp + 0x60]
test ecx, ecx
ja 0x423038
mov eax, dword [esp + 0x5c]
jb 0x4234b0
cmp eax, 0x80000000
jae 0x423038
test ecx, ecx
ja 0x423038
jb 0x4234b0
cmp eax, 0x4000000
jae 0x423038
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0x14]
mov dword [edx + ebp*4], eax
inc ebp
cmp ebp, edi
jb 0x423471
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
lea eax, [edi*4]
push eax
call dword [esp + 0x78]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x423188
cmp edi, 1
jne 0x42346b
xor edi, edi
test ebp, ebp
je 0x4234bf
mov ebx, dword [esi + 8]
xor ecx, ecx
test ebx, ebx
je 0x42350c
mov edx, dword [esi + 0xc]
lea ebx, [ebx]
cmp dword [edx], edi
je 0x423518
inc ecx
add edx, 8
cmp ecx, ebx
jb 0x423500
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
test ecx, ecx
js 0x42350c
inc edi
cmp edi, ebp
jb 0x4234f1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret