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

Disassembly:
push 0xffffffffffffffff
push 0x66bf91
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x704e7c]
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 0x421e43
lea eax, [ecx + esi*4 - 4]
cmp dword [eax], 0
jne 0x421ea9
dec esi
sub eax, 4
test esi, esi
jne 0x421e36
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 0x421e6d
lea eax, [ecx + esi*4 - 4]
mov edi, edi
cmp dword [eax], 0
jne 0x421ec0
dec esi
sub eax, 4
test esi, esi
jne 0x421e60
xor eax, eax
mov dword [esp + 0x38], eax
cmp eax, edi
lea eax, [esp + 0x3c]
jb 0x421e7f
lea eax, [esp + 0x38]
mov eax, dword [eax]
mov dword [esp + 0x44], eax
test eax, eax
jne 0x421ed5
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.0040ea20
mov eax, esi
jmp 0x422718
test esi, esi
je 0x421e43
lea eax, [ecx + esi*4 - 4]
call fcn.00414680
dec esi
mov edi, eax
shl esi, 5
add edi, esi
jmp 0x421e45
test esi, esi
je 0x421e6d
lea eax, [ecx + esi*4 - 4]
call fcn.00414680
dec esi
shl esi, 5
add eax, esi
jmp 0x421e6f
cmp eax, 0x2e
ja 0x421ee1
mov esi, 1
jmp 0x421eef
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.00424540
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 0x421f41
call fcn.006111cc
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x90]
push edi
add ecx, 0x14
call fcn.0040ee50
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 0x421f77
call fcn.006111cc
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.0040ee50
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 0x421fe4
cmp eax, 3
ja 0x421fbd
call fcn.006111cc
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.0040ee50
jmp 0x422470
cmp eax, 2
ja 0x421fee
call fcn.006111cc
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.0040ee50
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 0x42202d
call fcn.006111cc
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.0040ee50
mov edi, 3
cmp ebx, edi
jbe 0x422124
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 0x422095
call fcn.006111cc
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 0x4220c5
call fcn.006111cc
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 0x4220f1
call fcn.006111cc
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.0040ee50
add dword [esp + 0x18], 0x28
add edi, 2
cmp edi, ebx
jb 0x422066
mov dword [esp + 0x18], 1
cmp ebx, 1
jbe 0x42223c
mov ecx, dword [esp + 0x3c]
add ecx, 0x14
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 0x14
jmp 0x422150
mov edx, dword [esp + 0x18]
lea esi, [edx + ebx]
cmp esi, dword [esp + 0x1c]
jae 0x42221c
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 0x422180
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 0x4221b0
call fcn.006111cc
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 0x4221da
call fcn.006111cc
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.0040ee50
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 0x422180
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 0x422150
lea eax, [ebx + ebx*2]
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x1c]
jae 0x422359
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 0x4222ae
call fcn.006111cc
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 0x4222e3
call fcn.006111cc
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 0x42230f
call fcn.006111cc
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.0040ee50
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 0x422280
cmp ebx, dword [esp + 0x1c]
jae 0x422470
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 0x422445
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 0x4223e6
call fcn.006111cc
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 0x42240e
call fcn.006111cc
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.0040ee50
add dword [esp + 0x34], 2
add ebx, 2
add edi, 0x28
cmp ebx, dword [esp + 0x3c]
jb 0x4223b6
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 0x422390
lea ecx, [esp + 0x4c]
call fcn.0040e940
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 0x422676
mov edi, eax
jmp 0x4224b7
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 0x4224ce
xor al, al
jmp 0x4224dd
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 0x4224fa
xor al, al
jmp 0x42250b
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 0x42252b
mov eax, dword [esp + 0x20]
lea ecx, [edx + edx]
cmp ecx, eax
jae 0x42252b
lea ecx, [ebx + ebx]
cmp ecx, eax
jb 0x422669
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
sub esi, eax
xor edi, edi
mov dword [esp + 0x3c], eax
jmp 0x422540
test edx, edx
jne 0x422548
test ebx, ebx
je 0x42255a
test dl, 1
jne 0x42255a
test bl, 1
jne 0x42255a
shr edx, 1
shr ebx, 1
dec esi
inc edi
jmp 0x422540
cmp byte [esp + 0x98], 0
mov dword [esp + 0x90], edx
je 0x4225b3
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 0x422595
call fcn.006111cc
mov edx, dword [esp + 0x6c]
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
push eax
lea ecx, [esp + 0x50]
call fcn.0040ee50
mov byte [esp + 0x98], 0
jmp 0x422631
test esi, esi
je 0x4225e5
jmp 0x4225c0
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.0040ee50
test esi, esi
jne 0x4225c0
mov edx, dword [esp + 0x90]
test edx, edx
jne 0x4225ed
test ebx, ebx
je 0x422631
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 0x422617
call fcn.006111cc
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 0x42265e
jmp 0x422640
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.0040ee50
cmp edi, ebx
jne 0x422640
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x90], ebx
sub edi, 1
mov dword [esp + 0x1c], edi
jns 0x4224b0
mov ebp, dword [esp + 0x8c]
lea eax, [esp + 0x4c]
push eax
mov ecx, ebp
call fcn.0040ea20
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 0x4226b5
call fcn.0063c1c4
jmp 0x4226ba
call fcn.0061588e
add esp, 4
mov dword [esp + 0x84], 3
mov esi, dword [esp + 0x6c]
xor ebx, ebx
cmp esi, ebx
je 0x4226fd
mov edi, dword [esp + 0x70]
cmp esi, edi
je 0x4226f4
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 0x4226e0
mov esi, dword [esp + 0x6c]
push esi
call fcn.00610458
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.00610458
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