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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cb884
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x522d80]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov eax, dword [0x522d80]
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 [0x4cf770]
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 0x472399
lea ecx, [esp + 0x78]
mov byte [esp + 0x108], 2
call dword [0x4cf784]
mov esi, 0x10
cmp dword [esp + 0xbc], esi
jb 0x472335
mov edx, dword [esp + 0xa8]
push edx
call fcn.00485fc1
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 0x472369
mov eax, dword [esp + 0xc4]
push eax
call fcn.00485fc1
add esp, 4
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xd4], edi
mov byte [esp + 0xc4], 0
cmp dword [esp + 0xf4], esi
jb 0x472dcc
mov ecx, dword [esp + 0xe0]
push ecx
jmp 0x472dc4
lea ecx, [esi + 0x180]
call fcn.0045ddf0
lea ecx, [esi + 0x86c]
call dword [0x4cf68c]
lea ecx, [esi + 0x884]
call dword [0x4cf68c]
mov edx, dword [esi + 0x1c8]
lea edi, [ebx - 1]
mov dword [esp + 0x38], edx
test edi, edi
jl 0x472404
lea ecx, [ecx]
push edi
lea ecx, [esi + 0x82c]
call dword [0x4cf6f0]
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 0x472404
mov eax, dword [esp + 0x20]
dec edi
inc eax
mov dword [esp + 0x20], eax
test edi, edi
jge 0x4723d0
jmp 0x472408
mov eax, dword [esp + 0x20]
add eax, dword [esi + 0x844]
cmp eax, ebx
jge 0x472418
mov edi, ebx
sub edi, eax
jmp 0x47242c
jne 0x47242a
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.0046ad60
mov eax, dword [esi + 0xdc8]
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 + 0xdd0], eax
mov dword [esi + 0xdcc], ecx
mov dword [esi + 0xdd8], 0x21c
mov dword [esi + 0xdd4], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], edi
jge 0x472c79
cmp dword [esp + 0x3c], 0
jne 0x472c79
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 0x472501
call fcn.00497123
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.00402790
push edi
lea ecx, [esi + 0x7fc]
call dword [0x4cf6f0]
mov eax, dword [eax]
push edi
lea ecx, [esi + 0x814]
mov dword [esp + 0x20], eax
call dword [0x4cf6f0]
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 0x472578
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 0x47257f
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x20], ecx
mov dword [esp + 0x18], 0
test eax, eax
jle 0x472bf5
jmp 0x472598
mov eax, dword [esp + 0xb8]
cmp dword [esp + 0x18], eax
jbe 0x4725aa
call fcn.00497123
mov eax, dword [esp + 0xb8]
cmp dword [esp + 0xbc], 0x10
mov ecx, dword [esp + 0xa8]
jae 0x4725c2
lea ecx, [esp + 0xa8]
mov edi, dword [esp + 0x18]
mov bl, byte [ecx + edi]
add edi, 2
cmp edi, eax
jbe 0x4725d5
call fcn.00497123
cmp dword [esp + 0xbc], 0x10
mov eax, dword [esp + 0xa8]
jae 0x4725ed
lea eax, [esp + 0xa8]
mov dl, byte [edi + eax]
push 0
push 0x4cf96b
lea ecx, [esp + 0xe4]
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], 0
call fcn.00402870
push 0
push 0x4cf96b
lea ecx, [esp + 0xc8]
call fcn.00402870
cmp bl, 0xff
jne 0x4729d8
cmp byte [esp + 0x15], bl
jne 0x4729d8
mov edi, dword [esp + 0x18]
add edi, 3
cmp edi, dword [esp + 0xb8]
jbe 0x472647
call fcn.00497123
cmp dword [esp + 0xbc], 0x10
mov eax, dword [esp + 0xa8]
jae 0x47265f
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 0x472714
mov ebx, dword [esp + 0x18]
add edi, 2
mov dword [esp + 0x24], eax
cmp ebx, dword [esp + 0xb8]
jbe 0x47268d
call fcn.00497123
cmp dword [esp + 0xbc], 0x10
mov eax, dword [esp + 0xa8]
jae 0x4726a5
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.004026e0
cmp edi, dword [esp + 0xb8]
jbe 0x4726cd
call fcn.00497123
cmp dword [esp + 0xbc], 0x10
mov eax, dword [esp + 0xa8]
jae 0x4726e5
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.004026e0
add ebx, 3
add edi, 3
sub dword [esp + 0x24], 1
jne 0x47267f
mov dword [esp + 0x18], ebx
mov edi, dword [esp + 0x18]
cmp edi, dword [esp + 0xb8]
jbe 0x472726
call fcn.00497123
cmp dword [esp + 0xbc], 0x10
mov eax, dword [esp + 0xa8]
jae 0x47273e
lea eax, [esp + 0xa8]
movsx ebx, byte [eax + edi]
inc edi
mov dword [esp + 0x18], edi
test ebx, ebx
jle 0x4727f1
add edi, 2
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0xb8]
cmp dword [esp + 0x18], edx
jbe 0x472768
call fcn.00497123
cmp dword [esp + 0xbc], 0x10
mov eax, dword [esp + 0xa8]
jae 0x472780
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.004026e0
cmp edi, dword [esp + 0xb8]
jbe 0x4727ac
call fcn.00497123
cmp dword [esp + 0xbc], 0x10
mov eax, dword [esp + 0xa8]
jae 0x4727c4
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.004026e0
add dword [esp + 0x18], 3
add edi, 3
sub dword [esp + 0x24], 1
jne 0x472756
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 0x4728d8
mov ecx, dword [esi + 0x1bc]
cmp ecx, dword [esi + 0xb4]
mov edx, dword [esi + 0x238]
mov dword [esi + 0x1c4], edx
jge 0x472897
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 0x4728d8
mov dword [esi + 0x1b8], 0
mov dword [esp + 0x3c], eax
jmp 0x472bf1
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 0x472b12
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.00402790
mov eax, dword [esp + 0x48]
push ebx
push eax
mov ecx, esi
call fcn.0046b860
add ebx, ebx
cmp ebx, edi
mov dword [esp + 0x28], ebx
jle 0x4729c9
cmp edi, dword [esp + 0xd4]
jbe 0x472932
call fcn.00497123
cmp dword [esp + 0xd8], 0x10
mov eax, dword [esp + 0xc4]
jae 0x47294a
lea eax, [esp + 0xc4]
mov cl, byte [eax + edi]
lea ebx, [edi + 1]
mov byte [esp + 0x14], cl
cmp ebx, dword [esp + 0xd4]
jbe 0x472962
call fcn.00497123
cmp dword [esp + 0xd8], 0x10
mov eax, dword [esp + 0xc4]
jae 0x47297a
lea eax, [esp + 0xc4]
mov cl, byte [ebx + eax]
mov al, byte [esi + 0xcf9]
mov dl, byte [esi + 0x8ac]
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.00470b30
mov edx, dword [esi + 0xc8]
add edx, dword [esi + 0x4d4]
add edi, 2
add dword [esi + 0x1c4], edx
cmp edi, dword [esp + 0x28]
jl 0x472924
mov eax, dword [esp + 0x24]
mov dword [esi + 0x570], eax
jmp 0x472aff
mov edi, 3
add dword [esp + 0x18], edi
cmp bl, 0xfe
je 0x472aac
cmp byte [esp + 0x15], 0xfe
je 0x472aac
mov al, byte [esi + 0xcf9]
mov cl, byte [esi + 0x8ac]
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.00470b30
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 0x472a9a
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 0x472b50
cmp byte [esp + 0x14], 0xfe
je 0x472a94
cmp byte [esp + 0x15], 0xfe
jne 0x472aff
add dword [esp + 0x18], edi
jmp 0x472aff
mov eax, dword [esi + 0xc8]
add eax, ecx
add eax, edx
mov dword [esi + 0x1c4], eax
jmp 0x472aff
cmp dword [esp + 0x40], 0
jne 0x472aff
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 0x472b8a
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x48]
jl 0x472591
jmp 0x472bf1
cmp dword [esp + 0x1c], 0xffffffff
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x20], ecx
je 0x472be9
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 0x472bbc
cmp dword [esp + 0x1c], 0xffffffff
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x20], ecx
je 0x472be9
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 0x472bbc
cmp dword [esp + 0x1c], 0xffffffff
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x20], ecx
je 0x472be9
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.0045ea70
lea edx, [esp + 0x1c]
push edx
lea ecx, [esi + 0x86c]
call dword [0x4cf788]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esi + 0x884]
call dword [0x4cf788]
mov dword [esp + 0x3c], 1
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x1c], 0xffffffff
je 0x472c53
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.0045ea70
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 0x86c]
call dword [0x4cf788]
lea edx, [esp + 0x2c]
push edx
lea ecx, [esi + 0x884]
call dword [0x4cf788]
lea ebx, [esi + 0x1c8]
push ebx
lea ecx, [esp + 0x7c]
call dword [0x4cf788]
mov eax, dword [esp + 0x54]
add dword [ebx], eax
inc edi
cmp edi, dword [esp + 0x44]
mov dword [esp + 0x20], edi
jl 0x4724ce
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 0x472d0b
mov edi, dword [esp + 0x50]
push ebx
lea ecx, [esp + 0x7c]
call dword [0x4cf6f0]
cmp dword [eax], 0x300
jge 0x472d09
push ebx
lea ecx, [esp + 0x7c]
call dword [0x4cf6f0]
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 0x472d02
inc eax
jmp 0x472ce0
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 0x472ce0
inc ebx
cmp ebx, dword [esp + 0x44]
jl 0x472c94
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 0x472d2b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x34], ebx
mov ecx, esi
call fcn.0046aa80
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x78]
mov dword [esi + 0x20], eax
mov byte [esp + 0x108], 2
call dword [0x4cf784]
mov esi, 0x10
cmp dword [esp + 0xbc], esi
jb 0x472d69
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.00485fc1
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 0x472d9d
mov edx, dword [esp + 0xc4]
push edx
call fcn.00485fc1
add esp, 4
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], 0
cmp dword [esp + 0xf4], esi
jb 0x472dcc
mov eax, dword [esp + 0xe0]
push eax
call fcn.00485fc1
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.00497565
mov esp, ebp
pop ebp
ret 8