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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ca564
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x521da0]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov eax, dword [0x521da0]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
xor edi, edi
mov eax, 0xf
mov esi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf0], edi
mov byte [esp + 0xe0], 0
mov dword [esp + 0x108], edi
mov dword [esp + 0xd8], eax
mov dword [esp + 0xd4], edi
mov byte [esp + 0xc4], 0
mov dword [esp + 0xbc], eax
mov dword [esp + 0xb8], edi
mov byte [esp + 0xa8], 0
mov eax, dword [esi + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x4d8]
cdq
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x78]
mov byte [esp + 0x108], 2
mov dword [esp + 0x54], eax
mov dword [esp + 0x20], edi
call dword [0x4ce778]
mov ecx, dword [esi + 0x238]
mov dword [esi + 0x1c4], ecx
mov dword [esi + 0x1c8], 0x19
mov dword [esi + 0x1bc], edi
mov dword [esi + 0x1c0], edi
mov ecx, dword [esi + 0x7f4]
sub ecx, dword [esi + 0x7f0]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov byte [esp + 0x108], 3
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x44], ebx
jne 0x471319
lea ecx, [esp + 0x78]
mov byte [esp + 0x108], 2
call dword [0x4ce78c]
mov esi, 0x10
cmp dword [esp + 0xbc], esi
jb 0x4712b5
mov edx, dword [esp + 0xa8]
push edx
call fcn.00485196
add esp, 4
mov ebx, 0xf
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xb8], edi
mov byte [esp + 0xa8], 0
cmp dword [esp + 0xd8], esi
jb 0x4712e9
mov eax, dword [esp + 0xc4]
push eax
call fcn.00485196
add esp, 4
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xd4], edi
mov byte [esp + 0xc4], 0
cmp dword [esp + 0xf4], esi
jb 0x471d4c
mov ecx, dword [esp + 0xe0]
push ecx
jmp 0x471d44
lea ecx, [esi + 0x180]
call fcn.0045ccb0
lea ecx, [esi + 0x888]
call dword [0x4ce694]
lea ecx, [esi + 0x8a0]
call dword [0x4ce694]
mov edx, dword [esi + 0x1c8]
lea edi, [ebx - 1]
mov dword [esp + 0x38], edx
test edi, edi
jl 0x471384
lea ecx, [ecx]
push edi
lea ecx, [esi + 0x82c]
call dword [0x4ce6f8]
mov ecx, dword [eax]
add ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x38]
add eax, ecx
cmp eax, 0x212
mov dword [esp + 0x38], eax
jge 0x471384
mov eax, dword [esp + 0x20]
dec edi
inc eax
mov dword [esp + 0x20], eax
test edi, edi
jge 0x471350
jmp 0x471388
mov eax, dword [esp + 0x20]
add eax, dword [esi + 0x844]
cmp eax, ebx
jge 0x471398
mov edi, ebx
sub edi, eax
jmp 0x4713ac
jne 0x4713aa
xor edx, edx
test edi, edi
setl dl
dec edx
and edx, edi
mov dword [esi + 0x844], edx
xor edi, edi
xor eax, eax
mov ecx, esi
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x98], 0x400
mov dword [esp + 0x9c], 0x300
call fcn.00469be0
mov eax, dword [esi + 0xde4]
mov eax, dword [eax]
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push 0
push eax
mov eax, dword [ecx + 0x48]
call eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
push 0x2000
lea edx, [esp + 0x94]
push edx
lea edx, [esp + 0x54]
push edx
push eax
mov eax, dword [ecx + 0x34]
call eax
mov ecx, dword [esi + 0x1c4]
mov edx, dword [esi + 0x23c]
xor eax, eax
sub ecx, 5
add edx, 5
cmp edi, ebx
mov dword [esi + 0xdec], eax
mov dword [esi + 0xde8], ecx
mov dword [esi + 0xdf4], 0x21c
mov dword [esi + 0xdf0], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], edi
jge 0x471bf9
cmp dword [esp + 0x3c], 0
jne 0x471bf9
mov ecx, dword [esi + 0x7f4]
sub ecx, dword [esi + 0x7f0]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x471481
call fcn.00496353
mov edx, dword [esi + 0x7f0]
lea ecx, [edi*8]
sub ecx, edi
push 0xffffffffffffffff
lea eax, [edx + ecx*4]
push 0
push eax
lea ecx, [esp + 0xb0]
call fcn.00402800
push edi
lea ecx, [esi + 0x7fc]
call dword [0x4ce6f8]
mov eax, dword [eax]
push edi
lea ecx, [esi + 0x814]
mov dword [esp + 0x20], eax
call dword [0x4ce6f8]
cmp dword [esp + 0x1c], 0xffffffff
mov ecx, dword [eax]
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x48], eax
je 0x4714f8
mov edx, dword [esi + 0x1c8]
mov ecx, dword [esi + 0x1c4]
mov dword [esp + 0x5c], edx
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x58], ecx
mov dword [esi + 0x20], edx
jmp 0x4714ff
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x20], ecx
mov dword [esp + 0x18], 0
test eax, eax
jle 0x471b75
jmp 0x471518
mov eax, dword [esp + 0xb8]
cmp dword [esp + 0x18], eax
jbe 0x47152a
call fcn.00496353
mov eax, dword [esp + 0xb8]
cmp dword [esp + 0xbc], 0x10
mov ecx, dword [esp + 0xa8]
jae 0x471542
lea ecx, [esp + 0xa8]
mov edi, dword [esp + 0x18]
mov bl, byte [ecx + edi]
add edi, 2
cmp edi, eax
jbe 0x471555
call fcn.00496353
cmp dword [esp + 0xbc], 0x10
mov eax, dword [esp + 0xa8]
jae 0x47156d
lea eax, [esp + 0xa8]
mov dl, byte [edi + eax]
push 0
push 0x4ce97b
lea ecx, [esp + 0xe4]
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], 0
call fcn.004028e0
push 0
push 0x4ce97b
lea ecx, [esp + 0xc8]
call fcn.004028e0
cmp bl, 0xff
jne 0x471958
cmp byte [esp + 0x15], bl
jne 0x471958
mov edi, dword [esp + 0x18]
add edi, 3
cmp edi, dword [esp + 0xb8]
jbe 0x4715c7
call fcn.00496353
cmp dword [esp + 0xbc], 0x10
mov eax, dword [esp + 0xa8]
jae 0x4715df
lea eax, [esp + 0xa8]
movsx eax, byte [eax + edi]
inc edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edi
test eax, eax
jle 0x471694
mov ebx, dword [esp + 0x18]
add edi, 2
mov dword [esp + 0x24], eax
cmp ebx, dword [esp + 0xb8]
jbe 0x47160d
call fcn.00496353
cmp dword [esp + 0xbc], 0x10
mov eax, dword [esp + 0xa8]
jae 0x471625
lea eax, [esp + 0xa8]
mov cl, byte [eax + ebx]
mov byte [esp + 0x6c], cl
mov edx, dword [esp + 0x6c]
push edx
push 1
lea ecx, [esp + 0xe4]
call fcn.00402750
cmp edi, dword [esp + 0xb8]
jbe 0x47164d
call fcn.00496353
cmp dword [esp + 0xbc], 0x10
mov eax, dword [esp + 0xa8]
jae 0x471665
lea eax, [esp + 0xa8]
mov al, byte [edi + eax]
mov byte [esp + 0x68], al
mov ecx, dword [esp + 0x68]
push ecx
push 1
lea ecx, [esp + 0xe4]
call fcn.00402750
add ebx, 3
add edi, 3
sub dword [esp + 0x24], 1
jne 0x4715ff
mov dword [esp + 0x18], ebx
mov edi, dword [esp + 0x18]
cmp edi, dword [esp + 0xb8]
jbe 0x4716a6
call fcn.00496353
cmp dword [esp + 0xbc], 0x10
mov eax, dword [esp + 0xa8]
jae 0x4716be
lea eax, [esp + 0xa8]
movsx ebx, byte [eax + edi]
inc edi
mov dword [esp + 0x18], edi
test ebx, ebx
jle 0x471771
add edi, 2
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0xb8]
cmp dword [esp + 0x18], edx
jbe 0x4716e8
call fcn.00496353
cmp dword [esp + 0xbc], 0x10
mov eax, dword [esp + 0xa8]
jae 0x471700
lea eax, [esp + 0xa8]
mov ecx, dword [esp + 0x18]
mov dl, byte [eax + ecx]
mov byte [esp + 0x70], dl
mov eax, dword [esp + 0x70]
push eax
push 1
lea ecx, [esp + 0xc8]
call fcn.00402750
cmp edi, dword [esp + 0xb8]
jbe 0x47172c
call fcn.00496353
cmp dword [esp + 0xbc], 0x10
mov eax, dword [esp + 0xa8]
jae 0x471744
lea eax, [esp + 0xa8]
mov cl, byte [edi + eax]
mov byte [esp + 0x74], cl
mov edx, dword [esp + 0x74]
push edx
push 1
lea ecx, [esp + 0xc8]
call fcn.00402750
add dword [esp + 0x18], 3
add edi, 3
sub dword [esp + 0x24], 1
jne 0x4716d6
mov ecx, dword [esi + 0x4d4]
mov eax, dword [esi + 0xc8]
add eax, ecx
imul eax, ebx
cdq
idiv dword [esp + 0x28]
lea edx, [ebx + 1]
imul edx, ecx
add edx, dword [esi + 0x1c4]
add edx, dword [esp + 0x38]
cmp edx, dword [esi + 0x23c]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x570]
mov dword [esp + 0x24], eax
mov eax, 1
mov dword [esi + 0x570], eax
jl 0x471858
mov ecx, dword [esi + 0x1bc]
cmp ecx, dword [esi + 0xb4]
mov edx, dword [esi + 0x238]
mov dword [esi + 0x1c4], edx
jge 0x471817
mov edx, dword [esi + 0xcc]
add edx, dword [esi + 0x4d8]
add dword [esi + 0x1c0], eax
add dword [esi + 0x1c8], edx
inc ecx
mov dword [esi + 0x1bc], ecx
mov ecx, dword [esi + 0x1b8]
add ecx, 3
cmp dword [esp + 0x48], ecx
jg 0x471858
mov dword [esi + 0x1b8], 0
mov dword [esp + 0x3c], eax
jmp 0x471b71
mov eax, dword [esi + 0x4d8]
mov ecx, dword [esi + 0xcc]
mov edx, dword [esi + 0x1c8]
lea edi, [ecx + eax]
lea edi, [edx + edi*2]
cmp edi, 0x212
jge 0x471a92
add ecx, edx
add ecx, eax
mov eax, dword [esi + 0x1bc]
inc eax
inc dword [esi + 0x1c0]
mov dword [esi + 0x1c8], ecx
mov dword [esi + 0x1bc], eax
lea eax, [esp + 0x4c]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0xc0], esp
push 0xffffffffffffffff
xor edi, edi
push edi
lea edx, [esp + 0x104]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], edi
push edx
mov byte [ecx + 4], 0
call fcn.00402800
mov eax, dword [esp + 0x48]
push ebx
push eax
mov ecx, esi
call fcn.0046a670
add ebx, ebx
cmp ebx, edi
mov dword [esp + 0x28], ebx
jle 0x471949
cmp edi, dword [esp + 0xd4]
jbe 0x4718b2
call fcn.00496353
cmp dword [esp + 0xd8], 0x10
mov eax, dword [esp + 0xc4]
jae 0x4718ca
lea eax, [esp + 0xc4]
mov cl, byte [eax + edi]
lea ebx, [edi + 1]
mov byte [esp + 0x14], cl
cmp ebx, dword [esp + 0xd4]
jbe 0x4718e2
call fcn.00496353
cmp dword [esp + 0xd8], 0x10
mov eax, dword [esp + 0xc4]
jae 0x4718fa
lea eax, [esp + 0xc4]
mov cl, byte [ebx + eax]
mov al, byte [esi + 0xd15]
mov dl, byte [esi + 0x8c8]
xor byte [esp + 0x14], al
add dl, al
dec dl
xor cl, dl
push 0
mov byte [esp + 0x19], cl
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call fcn.0046fab0
mov edx, dword [esi + 0xc8]
add edx, dword [esi + 0x4d4]
add edi, 2
add dword [esi + 0x1c4], edx
cmp edi, dword [esp + 0x28]
jl 0x4718a4
mov eax, dword [esp + 0x24]
mov dword [esi + 0x570], eax
jmp 0x471a7f
mov edi, 3
add dword [esp + 0x18], edi
cmp bl, 0xfe
je 0x471a2c
cmp byte [esp + 0x15], 0xfe
je 0x471a2c
mov al, byte [esi + 0xd15]
mov cl, byte [esi + 0x8c8]
add cl, al
push 0
xor bl, al
dec cl
xor byte [esp + 0x19], cl
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x54]
push eax
mov ecx, esi
mov byte [esp + 0x20], bl
call fcn.0046fab0
mov eax, dword [esi + 0xd4]
mov ecx, dword [esi + 0x4d4]
mov edx, dword [esi + 0x1c4]
add eax, eax
lea ebx, [edx + ecx*2]
add ebx, eax
cmp ebx, dword [esi + 0x23c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], 0
jl 0x471a1a
mov ecx, dword [esi + 0x238]
mov edx, dword [esi + 0xcc]
mov dword [esi + 0x1c4], ecx
mov ecx, dword [esi + 0x4d8]
lea eax, [edx + ecx]
add dword [esi + 0x1c8], eax
mov eax, dword [esi + 0x1c8]
add edx, eax
add edx, ecx
cmp edx, 0x212
jge 0x471ad0
cmp byte [esp + 0x14], 0xfe
je 0x471a14
cmp byte [esp + 0x15], 0xfe
jne 0x471a7f
add dword [esp + 0x18], edi
jmp 0x471a7f
mov eax, dword [esi + 0xc8]
add eax, ecx
add eax, edx
mov dword [esi + 0x1c4], eax
jmp 0x471a7f
cmp dword [esp + 0x40], 0
jne 0x471a7f
mov ecx, dword [esi + 0x238]
mov edx, dword [esi + 0xcc]
mov dword [esi + 0x1c4], ecx
mov ecx, dword [esi + 0x4d8]
lea eax, [edx + ecx]
add dword [esi + 0x1c8], eax
mov eax, dword [esi + 0x1c8]
mov edi, 1
add dword [esi + 0x1bc], edi
add dword [esi + 0x1c0], edi
add edx, eax
add edx, ecx
cmp edx, 0x212
mov dword [esp + 0x40], edi
jge 0x471b0a
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x48]
jl 0x471511
jmp 0x471b71
cmp dword [esp + 0x1c], 0xffffffff
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x20], ecx
je 0x471b69
mov ecx, dword [esi + 0x1c8]
sub ecx, dword [esi + 0xcc]
mov edi, dword [esp + 0x58]
mov edx, dword [esi + 0x23c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x6c]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
jmp 0x471b3c
cmp dword [esp + 0x1c], 0xffffffff
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x20], ecx
je 0x471b69
sub eax, dword [esi + 0xcc]
mov edi, dword [esp + 0x58]
mov edx, dword [esi + 0x23c]
mov ecx, eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x6c]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
jmp 0x471b3c
cmp dword [esp + 0x1c], 0xffffffff
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x20], ecx
je 0x471b69
sub eax, dword [esi + 0xcc]
mov edi, dword [esp + 0x58]
mov edx, dword [esi + 0x23c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edi
mov edi, dword [esp + 0x6c]
mov dword [ecx + 4], edi
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esi + 0x180]
call fcn.0045d930
lea edx, [esp + 0x1c]
push edx
lea ecx, [esi + 0x888]
call dword [0x4ce790]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esi + 0x8a0]
call dword [0x4ce790]
mov dword [esp + 0x3c], 1
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x1c], 0xffffffff
je 0x471bd3
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c8]
sub ecx, dword [esi + 0xcc]
mov edx, dword [esi + 0x23c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x6c]
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
lea ecx, [esi + 0x180]
call fcn.0045d930
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 0x888]
call dword [0x4ce790]
lea edx, [esp + 0x2c]
push edx
lea ecx, [esi + 0x8a0]
call dword [0x4ce790]
lea ebx, [esi + 0x1c8]
push ebx
lea ecx, [esp + 0x7c]
call dword [0x4ce790]
mov eax, dword [esp + 0x54]
add dword [ebx], eax
inc edi
cmp edi, dword [esp + 0x44]
mov dword [esp + 0x20], edi
jl 0x47144e
mov eax, dword [esp + 0x88]
sub eax, dword [esp + 0x84]
xor ebx, ebx
sar eax, 2
cmp eax, ebx
mov dword [esp + 0x44], eax
jle 0x471c8b
mov edi, dword [esp + 0x50]
push ebx
lea ecx, [esp + 0x7c]
call dword [0x4ce6f8]
cmp dword [eax], 0x300
jge 0x471c89
push ebx
lea ecx, [esp + 0x7c]
call dword [0x4ce6f8]
mov ecx, dword [eax]
imul ecx, dword [esp + 0x4c]
mov edx, dword [esi + 0x238]
add ecx, edi
mov edi, 0x384
lea eax, [ecx + edx*4]
sub edi, edx
xor ecx, ecx
test edi, edi
jle 0x471c82
inc eax
jmp 0x471c60
mov byte [eax - 1], 0xff
mov byte [eax], 0xff
mov byte [eax + 1], 0xff
mov byte [eax + 2], 0x80
mov edx, 0x384
sub edx, dword [esi + 0x238]
inc ecx
add eax, 4
cmp ecx, edx
jl 0x471c60
inc ebx
cmp ebx, dword [esp + 0x44]
jl 0x471c14
xor ebx, ebx
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x38]
push eax
call edx
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x471cab
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x34], ebx
mov ecx, esi
call fcn.004698a0
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x78]
mov dword [esi + 0x20], eax
mov byte [esp + 0x108], 2
call dword [0x4ce78c]
mov esi, 0x10
cmp dword [esp + 0xbc], esi
jb 0x471ce9
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.00485196
add esp, 4
mov edi, 0xf
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], 0
cmp dword [esp + 0xd8], esi
jb 0x471d1d
mov edx, dword [esp + 0xc4]
push edx
call fcn.00485196
add esp, 4
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], 0
cmp dword [esp + 0xf4], esi
jb 0x471d4c
mov eax, dword [esp + 0xe0]
push eax
call fcn.00485196
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.00496795
mov esp, ebp
pop ebp
ret 8