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

Disassembly:
sub esp, 0x7c
mov eax, dword [0x46b600]
mov dword [esp + 0x78], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
push ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x4c], eax
push ebp
mov ebp, dword [esp + 0x90]
test ebp, ebp
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
jbe 0x421fe4
movzx ecx, word [ebx + eax*2]
inc word [esp + ecx*2 + 0x40]
lea ecx, [esp + ecx*2 + 0x40]
inc eax
cmp eax, ebp
jb 0x421fd2
mov ecx, dword [esp + 0x98]
mov ecx, dword [ecx]
mov eax, 0xf
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
lea ebx, [ebx]
cmp word [esp + eax*2 + 0x40], 0
jne 0x42200e
dec eax
cmp eax, 1
jae 0x422000
cmp ecx, eax
mov dword [esp + 0x14], eax
jbe 0x42201c
mov dword [esp + 0xc], eax
mov ecx, eax
test eax, eax
jne 0x422032
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x78]
call fcn.0042f2ae
add esp, 0x7c
ret
push esi
mov esi, 1
cmp word [esp + esi*2 + 0x44], 0
jne 0x42207a
cmp word [esp + esi*2 + 0x46], 0
jne 0x42206a
cmp word [esp + esi*2 + 0x48], 0
jne 0x42206d
cmp word [esp + esi*2 + 0x4a], 0
jne 0x422072
cmp word [esp + esi*2 + 0x4c], 0
jne 0x422077
add esi, 5
cmp esi, 0xf
jbe 0x422038
jmp 0x42207a
inc esi
jmp 0x42207a
add esi, 2
jmp 0x42207a
add esi, 3
jmp 0x42207a
add esi, 4
cmp ecx, esi
jae 0x422082
mov dword [esp + 0x10], esi
mov edx, 1
mov eax, edx
lea esp, [esp]
movzx ecx, word [esp + eax*2 + 0x44]
add edx, edx
sub edx, ecx
js 0x4220d3
inc eax
cmp eax, 0xf
jbe 0x422090
test edx, edx
push edi
mov edi, dword [esp + 0x90]
jle 0x4220e6
test edi, edi
je 0x4220bf
movzx eax, word [esp + 0x48]
mov ecx, ebp
sub ecx, eax
cmp ecx, 1
je 0x4220e6
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x78]
call fcn.0042f2ae
add esp, 0x7c
ret
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x78]
call fcn.0042f2ae
add esp, 0x7c
ret
mov word [esp + 0x6a], 0
mov eax, 2
jmp 0x422100
mov dx, word [esp + eax + 0x68]
add dx, word [esp + eax + 0x48]
mov cx, word [esp + eax + 0x4a]
add cx, dx
mov word [esp + eax + 0x6a], dx
mov word [esp + eax + 0x6c], cx
add eax, 4
cmp eax, 0x1e
jb 0x422100
xor eax, eax
test ebp, ebp
jbe 0x42215d
lea ebx, [ebx]
cmp word [ebx + eax*2], 0
je 0x422158
movzx edx, word [ebx + eax*2]
movzx ecx, word [esp + edx*2 + 0x68]
mov edx, dword [esp + 0xa4]
mov word [edx + ecx*2], ax
movzx edx, word [ebx + eax*2]
inc word [esp + edx*2 + 0x68]
lea edx, [esp + edx*2 + 0x68]
inc eax
cmp eax, ebp
jb 0x422130
mov eax, edi
sub eax, 0
mov edx, 0xffffffff
je 0x4221a4
dec eax
je 0x422182
mov dword [esp + 0x38], 0x45bac8
mov dword [esp + 0x3c], 0x45bb08
mov dword [esp + 0x2c], edx
jmp 0x4221bb
mov eax, 0x45ba48
sub eax, 0x202
mov dword [esp + 0x38], eax
mov eax, 0x45ba88
sub eax, 0x202
mov dword [esp + 0x2c], 0x100
jmp 0x4221b7
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], 0x13
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
mov eax, 1
shl eax, cl
mov dword [esp + 0x30], edx
xor ebp, ebp
xor ebx, ebx
cmp edi, 1
lea edx, [eax - 1]
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], edx
jne 0x4221fe
cmp eax, 0x506
jae 0x422476
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x24], eax
lea esp, [esp]
mov cl, byte [esp + 0x18]
mov esi, dword [esp + 0x24]
mov ax, word [esi]
mov edx, dword [esp + 0x2c]
sub cl, bl
mov byte [esp + 0x11], cl
movzx ecx, ax
cmp ecx, edx
jge 0x422238
mov byte [esp + 0x10], 0
mov word [esp + 0x12], ax
jmp 0x422265
jle 0x422259
movzx eax, word [esi]
mov edx, dword [esp + 0x3c]
shl eax, 1
mov cl, byte [eax + edx]
mov edx, dword [esp + 0x38]
mov ax, word [eax + edx]
mov byte [esp + 0x10], cl
mov word [esp + 0x12], ax
jmp 0x422265
mov byte [esp + 0x10], 0x60
mov word [esp + 0x12], 0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
sub ecx, ebx
mov eax, 1
shl eax, cl
mov ecx, ebx
mov edi, ebp
shr edi, cl
mov ecx, dword [esp + 0x20]
lea esi, [eax*4]
add edi, edx
lea ecx, [ecx + edi*4]
mov edi, dword [esp + 0x10]
sub edx, eax
sub ecx, esi
test edx, edx
mov dword [ecx], edi
jne 0x422290
mov edx, dword [esp + 0x18]
lea ecx, [edx - 1]
mov eax, 1
shl eax, cl
test ebp, eax
je 0x4222b6
lea esp, [esp]
shr eax, 1
test ebp, eax
jne 0x4222b0
test eax, eax
je 0x4222c5
lea ecx, [eax - 1]
and ecx, ebp
add ecx, eax
mov ebp, ecx
jmp 0x4222c7
xor ebp, ebp
mov esi, dword [esp + 0x24]
add esi, 2
dec word [esp + edx*2 + 0x48]
cmp word [esp + edx*2 + 0x48], 0
mov dword [esp + 0x24], esi
jne 0x4222fd
cmp edx, dword [esp + 0x1c]
je 0x4223c9
mov ecx, dword [esp + 0x94]
mov edx, esi
movzx eax, word [edx]
movzx edx, word [ecx + eax*2]
mov dword [esp + 0x18], edx
cmp edx, dword [esp + 0x14]
jbe 0x422210
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
and esi, ebp
cmp esi, eax
mov dword [esp + 0x44], esi
je 0x422210
test ebx, ebx
jne 0x422325
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
lea edx, [eax + ecx*4]
mov ecx, dword [esp + 0x18]
sub ecx, ebx
mov dword [esp + 0x20], edx
mov eax, 1
lea edx, [ebx + ecx]
shl eax, cl
cmp edx, edi
jae 0x42236c
lea esi, [esp + edx*2 + 0x48]
movzx edi, word [esi]
sub eax, edi
test eax, eax
jle 0x422368
mov edi, dword [esp + 0x1c]
inc ecx
inc edx
add esi, 2
shl eax, 1
cmp edx, edi
jb 0x422350
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
mov eax, 1
shl eax, cl
add edx, eax
mov dword [esp + 0x34], eax
cmp dword [esp + 0x90], 1
mov dword [esp + 0x28], edx
jne 0x422398
mov eax, edx
cmp eax, 0x506
jae 0x422476
mov edx, esi
mov esi, dword [esp + 0x9c]
mov eax, dword [esi]
mov byte [eax + edx*4], cl
mov ecx, dword [esi]
mov al, byte [esp + 0x14]
mov byte [ecx + edx*4 + 1], al
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0x30], edx
mov word [eax + edx*4 + 2], cx
jmp 0x422210
mov edi, dword [esp + 0x9c]
mov al, dl
sub al, bl
test ebp, ebp
mov byte [esp + 0x10], 0x40
mov byte [esp + 0x11], al
mov word [esp + 0x12], 0
je 0x422445
mov esi, dword [esp + 0x20]
lea esp, [esp]
test ebx, ebx
je 0x422414
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
and ecx, ebp
cmp ecx, eax
je 0x422414
mov eax, dword [esp + 0x14]
mov esi, dword [edi]
xor ebx, ebx
mov dword [esp + 0x18], eax
mov byte [esp + 0x11], al
mov edx, eax
mov ecx, ebx
mov eax, ebp
shr eax, cl
mov ecx, dword [esp + 0x10]
mov dword [esi + eax*4], ecx
lea ecx, [edx - 1]
mov eax, 1
shl eax, cl
test ebp, eax
je 0x422436
nop
shr eax, 1
test ebp, eax
jne 0x422430
test eax, eax
je 0x422445
lea ecx, [eax - 1]
and ecx, ebp
add ecx, eax
mov ebp, ecx
jne 0x4223f0
mov edx, dword [esp + 0x28]
mov ecx, dword [edi]
lea eax, [edx*4]
mov edx, dword [esp + 0x14]
add ecx, eax
mov dword [edi], ecx
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
mov dword [ecx], edx
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x78]
call fcn.0042f2ae
add esp, 0x7c
ret
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
call fcn.0042f2ae
add esp, 0x7c
ret