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

Disassembly:
push 0xffffffffffffffff
push 0x66e3d1
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70903c]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x48], 0
mov esi, dword [eax + 8]
mov ecx, dword [eax + 0xc]
test esi, esi
je 0x421dd3
lea eax, [ecx + esi*4 - 4]
cmp dword [eax], 0
jne 0x421e39
dec esi
sub eax, 4
test esi, esi
jne 0x421dc6
xor edi, edi
mov eax, dword [esp + 0x94]
mov esi, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x3c], edi
test esi, esi
je 0x421dfd
lea eax, [ecx + esi*4 - 4]
mov edi, edi
cmp dword [eax], 0
jne 0x421e50
dec esi
sub eax, 4
test esi, esi
jne 0x421df0
xor eax, eax
mov dword [esp + 0x38], eax
cmp eax, edi
lea eax, [esp + 0x3c]
jb 0x421e0f
lea eax, [esp + 0x38]
mov eax, dword [eax]
mov dword [esp + 0x44], eax
test eax, eax
jne 0x421e65
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
mov esi, dword [esp + 0x8c]
push eax
mov ecx, esi
call fcn.0040ea70
mov eax, esi
jmp 0x4226a8
test esi, esi
je 0x421dd3
lea eax, [ecx + esi*4 - 4]
call fcn.00414770
dec esi
mov edi, eax
shl esi, 5
add edi, esi
jmp 0x421dd5
test esi, esi
je 0x421dfd
lea eax, [ecx + esi*4 - 4]
call fcn.00414770
dec esi
shl esi, 5
add eax, esi
jmp 0x421dff
cmp eax, 0x2e
ja 0x421e71
mov esi, 1
jmp 0x421e7f
mov ecx, 0x104
cmp ecx, eax
sbb esi, esi
neg esi
add esi, 2
mov ecx, esi
mov ebx, 1
shl ebx, cl
lea edx, [esp + 0x60]
mov dword [esp + 0x38], esi
mov eax, ebx
shl eax, cl
mov dword [esp + 0x20], ebx
push eax
push edx
mov dword [esp + 0x24], eax
call fcn.00424470
mov dword [esp + 0x84], 1
mov ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x6c]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x421ed1
call fcn.00615e0c
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x90]
push edi
add ecx, 0x14
call fcn.0040ee90
mov ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x6c]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x421f07
call fcn.00615e0c
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x6c]
lea eax, [ebx + ebx*4]
add eax, eax
add eax, eax
push edx
add ecx, eax
mov dword [esp + 0x40], eax
call fcn.0040ee90
mov ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x6c]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, 1
jne 0x421f74
cmp eax, 3
ja 0x421f4d
call fcn.00615e0c
mov eax, dword [esp + 0x98]
mov edx, dword [ebp]
mov esi, dword [esp + 0x6c]
mov edx, dword [edx + 0xc]
push eax
push edi
mov ecx, ebp
add esi, 0x3c
call edx
push eax
mov ecx, esi
call fcn.0040ee90
jmp 0x422400
cmp eax, 2
ja 0x421f7e
call fcn.00615e0c
mov edx, dword [ebp]
mov esi, dword [esp + 0x6c]
mov eax, dword [edx + 0x18]
push edi
mov ecx, ebp
add esi, 0x28
call eax
push eax
mov ecx, esi
call fcn.0040ee90
mov ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x6c]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
lea esi, [ebx + ebx]
add ecx, edx
cmp esi, ecx
jb 0x421fbd
call fcn.00615e0c
mov eax, dword [esp + 0x6c]
lea edx, [esi + esi*4]
lea esi, [eax + edx*4]
mov edx, dword [ebp]
mov eax, dword [esp + 0x98]
mov edx, dword [edx + 0x18]
push eax
mov ecx, ebp
call edx
push eax
mov ecx, esi
call fcn.0040ee90
mov edi, 3
cmp ebx, edi
jbe 0x4220b4
mov dword [esp + 0x18], 0x3c
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov edx, esi
sub edx, ecx
mov eax, 0x66666667
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
ja 0x422025
call fcn.00615e0c
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
lea edx, [ecx + 0x28]
mov dword [esp + 0x34], edx
mov edx, esi
sub edx, ecx
mov eax, 0x66666667
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [edi - 2]
cmp edx, eax
jb 0x422055
call fcn.00615e0c
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x18]
lea edx, [eax + ecx - 0x28]
sub esi, ecx
mov dword [esp + 0x30], edx
mov eax, 0x66666667
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x422081
call fcn.00615e0c
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp]
mov eax, dword [eax + 0xc]
lea esi, [edx + ecx]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
mov ecx, ebp
call eax
push eax
mov ecx, esi
call fcn.0040ee90
add dword [esp + 0x18], 0x28
add edi, 2
cmp edi, ebx
jb 0x421ff6
mov dword [esp + 0x18], 1
cmp ebx, 1
jbe 0x4221cc
mov ecx, dword [esp + 0x3c]
add ecx, 0x14
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 0x14
jmp 0x4220e0
mov edx, dword [esp + 0x18]
lea esi, [edx + ebx]
cmp esi, dword [esp + 0x1c]
jae 0x4221ac
mov eax, dword [esp + 0x30]
mov ecx, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edx
jmp 0x422110
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov edx, edi
sub edx, ecx
mov eax, 0x66666667
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x24], eax
jb 0x422140
call fcn.00615e0c
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x2c]
add edx, ecx
sub edi, ecx
mov dword [esp + 0x40], edx
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x42216a
call fcn.00615e0c
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x28]
mov eax, dword [ebp]
mov eax, dword [eax + 0xc]
lea edi, [edx + ecx]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x40]
push ecx
push edx
mov ecx, ebp
call eax
push eax
mov ecx, edi
call fcn.0040ee90
mov eax, dword [esp + 0x3c]
add dword [esp + 0x24], ebx
add dword [esp + 0x28], eax
add dword [esp + 0x2c], eax
add esi, ebx
cmp esi, dword [esp + 0x1c]
jb 0x422110
mov eax, dword [esp + 0x18]
mov ecx, 0x28
add dword [esp + 0x30], ecx
add dword [esp + 0x34], ecx
add eax, 2
mov dword [esp + 0x18], eax
cmp eax, ebx
jb 0x4220e0
lea eax, [ebx + ebx*2]
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x1c]
jae 0x4222e9
lea ecx, [eax + eax*4]
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x34], ecx
lea esi, [ebx + ebx]
sub eax, esi
mov dword [esp + 0x98], eax
lea ecx, [ebx + ebx*4]
add ecx, ecx
lea eax, [eax + eax*4]
add ecx, ecx
add ecx, ecx
add eax, eax
add eax, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
lea esp, [esp]
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov edx, edi
sub edx, ecx
mov eax, 0x66666667
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x42223e
call fcn.00615e0c
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
lea edx, [esi + esi*4]
lea eax, [ecx + edx*4]
mov dword [esp + 0x40], eax
mov edx, edi
sub edx, ecx
mov eax, 0x66666667
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x98], eax
jb 0x422273
call fcn.00615e0c
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x30]
add edx, ecx
sub edi, ecx
mov dword [esp + 0x3c], edx
mov eax, 0x66666667
imul edi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0x42229f
call fcn.00615e0c
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x34]
mov eax, dword [ebp]
mov eax, dword [eax + 0xc]
lea edi, [edx + ecx]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
push edx
mov ecx, ebp
call eax
push eax
mov ecx, edi
call fcn.0040ee90
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
add dword [esp + 0x98], esi
add dword [esp + 0x34], ecx
add dword [esp + 0x30], ecx
add eax, esi
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x1c]
jb 0x422210
cmp ebx, dword [esp + 0x1c]
jae 0x422400
mov ecx, dword [esp + 0x20]
lea eax, [ecx + 2]
mov dword [esp + 0x98], eax
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov dword [esp + 0x30], eax
lea eax, [ecx + ecx]
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov dword [esp + 0x2c], eax
lea ebx, [ebx]
mov ebx, dword [esp + 0x98]
mov ecx, dword [esp + 0x20]
lea eax, [ecx + ebx - 2]
mov dword [esp + 0x3c], eax
cmp ebx, eax
jae 0x4223d5
mov edi, dword [esp + 0x30]
mov edx, ebx
dec edx
mov dword [esp + 0x34], edx
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov edx, esi
sub edx, ecx
mov eax, 0x66666667
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x34], eax
jb 0x422376
call fcn.00615e0c
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
lea edx, [edi + ecx - 0x14]
sub esi, ecx
mov dword [esp + 0x40], edx
mov eax, 0x66666667
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x42239e
call fcn.00615e0c
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x90]
mov edx, dword [ebp]
mov edx, dword [edx + 0xc]
lea esi, [edi + ecx]
mov ecx, dword [esp + 0x40]
push eax
push ecx
mov ecx, ebp
call edx
push eax
mov ecx, esi
call fcn.0040ee90
add dword [esp + 0x34], 2
add ebx, 2
add edi, 0x28
cmp ebx, dword [esp + 0x3c]
jb 0x422346
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x98]
add ecx, ecx
add eax, ecx
mov ecx, dword [esp + 0x2c]
add dword [esp + 0x30], ecx
mov dword [esp + 0x98], eax
add eax, 0xfffffffe
cmp eax, dword [esp + 0x1c]
jb 0x422320
lea ecx, [esp + 0x4c]
call fcn.0040e990
mov eax, dword [esp + 0x44]
lea ecx, [eax - 1]
xor edx, edx
xor ebx, ebx
add eax, 0xffffffff
mov byte [esp + 0x84], 2
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x98], 1
mov dword [esp + 0x1c], eax
js 0x422606
mov edi, eax
jmp 0x422447
mov edx, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov eax, dword [ecx + 8]
mov esi, edi
shr esi, 5
cmp esi, eax
jb 0x42245e
xor al, al
jmp 0x42246d
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov ecx, edi
and ecx, 0x1f
shr eax, cl
and al, 1
mov ecx, dword [esp + 0x9c]
movzx eax, al
lea edx, [eax + edx*2]
mov dword [esp + 0x90], edx
cmp esi, dword [ecx + 8]
jb 0x42248a
xor al, al
jmp 0x42249b
mov eax, ecx
mov eax, dword [eax + 0xc]
mov eax, dword [eax + esi*4]
mov ecx, edi
and ecx, 0x1f
shr eax, cl
and al, 1
movzx ecx, al
lea ebx, [ecx + ebx*2]
test edi, edi
je 0x4224bb
mov eax, dword [esp + 0x20]
lea ecx, [edx + edx]
cmp ecx, eax
jae 0x4224bb
lea ecx, [ebx + ebx]
cmp ecx, eax
jb 0x4225f9
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
sub esi, eax
xor edi, edi
mov dword [esp + 0x3c], eax
jmp 0x4224d0
test edx, edx
jne 0x4224d8
test ebx, ebx
je 0x4224ea
test dl, 1
jne 0x4224ea
test bl, 1
jne 0x4224ea
shr edx, 1
shr ebx, 1
dec esi
inc edi
jmp 0x4224d0
cmp byte [esp + 0x98], 0
mov dword [esp + 0x90], edx
je 0x422543
mov ecx, dword [esp + 0x38]
shl ebx, cl
mov ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x6c]
mov eax, 0x66666667
add ebx, edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x422525
call fcn.00615e0c
mov edx, dword [esp + 0x6c]
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
push eax
lea ecx, [esp + 0x50]
call fcn.0040ee90
mov byte [esp + 0x98], 0
jmp 0x4225c1
test esi, esi
je 0x422575
jmp 0x422550
mov edx, dword [ebp]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x4c]
push eax
mov ecx, ebp
dec esi
call edx
push eax
lea ecx, [esp + 0x50]
call fcn.0040ee90
test esi, esi
jne 0x422550
mov edx, dword [esp + 0x90]
test edx, edx
jne 0x42257d
test ebx, ebx
je 0x4225c1
mov ecx, dword [esp + 0x38]
shl ebx, cl
mov ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x6c]
mov eax, 0x66666667
add ebx, edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4225a7
call fcn.00615e0c
mov ecx, dword [esp + 0x6c]
mov edx, dword [ebp]
mov edx, dword [edx + 0x20]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebp
call edx
xor ebx, ebx
cmp edi, ebx
je 0x4225ee
jmp 0x4225d0
mov eax, dword [ebp]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebp
dec edi
call edx
push eax
lea ecx, [esp + 0x50]
call fcn.0040ee90
cmp edi, ebx
jne 0x4225d0
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x90], ebx
sub edi, 1
mov dword [esp + 0x1c], edi
jns 0x422440
mov ebp, dword [esp + 0x8c]
lea eax, [esp + 0x4c]
push eax
mov ecx, ebp
call fcn.0040ea70
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
lea ecx, [edx*4]
mov dword [esp + 0x48], 1
push esi
cmp ecx, 0x10
jb 0x422645
call fcn.0063e513
jmp 0x42264a
call fcn.00618e4e
add esp, 4
mov dword [esp + 0x84], 3
mov esi, dword [esp + 0x6c]
xor ebx, ebx
cmp esi, ebx
je 0x42268d
mov edi, dword [esp + 0x70]
cmp esi, edi
je 0x422684
lea ebx, [ebx]
mov edx, dword [esi]
mov eax, dword [edx]
push ebx
mov ecx, esi
call eax
add esi, 0x14
cmp esi, edi
jne 0x422670
mov esi, dword [esp + 0x6c]
push esi
call fcn.00613a18
add esp, 4
mov ecx, dword [esp + 0x60]
push ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.00613a18
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 0x14