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

Disassembly:
push 0xffffffffffffffff
push 0x4c6042
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53856c]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x64]
xor esi, esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x3c], 0x4a39a2
mov dword [esp + 0x40], 0x4a3cd1
mov dword [esp + 0x44], fcn.004a38c5
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], 0x1fff8
mov dword [esp + 0x38], 0x4dba34
mov byte [esp + 0x5c], 1
mov eax, dword [esp + 0x70]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x47d2c0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 6]
push eax
lea ecx, [esp + 0x3c]
call fcn.00409710
mov edx, dword [esp + 0x74]
mov ecx, eax
mov eax, dword [esp + 0x70]
push ebp
mov dword [esp + 0x34], ecx
call fcn.0047f680
mov ecx, dword [ebp + 0x28]
sub ecx, dword [ebp + 0x24]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], esi
cmp edi, eax
jb 0x47d315
call fcn.004ac063
mov esi, dword [ebp + 0x24]
lea eax, [edi + edi*2]
add eax, eax
add eax, eax
add eax, eax
mov ecx, dword [esi + eax + 0x10]
sub ecx, dword [esi + eax + 0xc]
add esi, eax
mov dword [esp + 0x20], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x6c], ecx
jb 0x47d34b
call fcn.004ac063
mov ebx, dword [esp + 0x6c]
mov eax, dword [esi + 0xc]
lea ebx, [ebx + ebx*2]
add ebx, ebx
add ebx, ebx
add ebx, ebx
mov ecx, dword [eax + ebx + 0x10]
sub ecx, dword [eax + ebx + 0xc]
add eax, ebx
mov eax, 0x66666667
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
lea edx, [edx + eax - 1]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], edx
mov byte [esp + 0x64], 0
test edx, edx
jl 0x47d5fa
lea ecx, [ecx]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
lea eax, [ecx + edx]
mov ecx, dword [ebp + 0x28]
sub ecx, dword [ebp + 0x24]
cdq
sub eax, edx
mov ebx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
sar ebx, 1
cmp dword [esp + 0x68], eax
jb 0x47d3c4
call fcn.004ac063
mov esi, dword [ebp + 0x24]
add esi, dword [esp + 0x20]
mov eax, 0x2aaaaaab
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x6c], ecx
jb 0x47d3ed
call fcn.004ac063
mov esi, dword [esi + 0xc]
add esi, dword [esp + 0x14]
mov eax, 0x66666667
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x47d414
call fcn.004ac063
mov ecx, dword [esi + 0xc]
lea eax, [ebx + ebx*4]
shl eax, 4
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + eax]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47d427
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
sub eax, edx
sar eax, 1
lea esi, [eax + eax + 6]
test edi, edi
je 0x47d45f
mov eax, dword [edi]
cmp eax, ecx
jae 0x47d45f
lea edx, [eax + esi]
cmp edx, ecx
ja 0x47d45f
add dword [edi], esi
lea eax, [edi + eax + 8]
mov dword [esp + 0x24], eax
jmp 0x47d48e
cmp esi, ecx
jbe 0x47d465
mov ecx, esi
add ecx, 8
push ecx
call dword [esp + 0x40]
add esp, 4
test eax, eax
je 0x47d486
mov dword [eax + 4], edi
mov dword [eax], esi
mov dword [esp + 0x48], eax
add eax, 8
mov dword [esp + 0x24], eax
jmp 0x47d48e
mov dword [esp + 0x24], 0
mov ecx, dword [ebp + 0x28]
sub ecx, dword [ebp + 0x24]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x68], eax
jb 0x47d4b0
call fcn.004ac063
mov esi, dword [ebp + 0x24]
add esi, dword [esp + 0x20]
mov eax, 0x2aaaaaab
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x6c], ecx
jb 0x47d4d9
call fcn.004ac063
mov esi, dword [esi + 0xc]
add esi, dword [esp + 0x14]
mov eax, 0x66666667
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x47d500
call fcn.004ac063
mov ecx, dword [ebp + 0x28]
sub ecx, dword [ebp + 0x24]
mov edi, dword [esi + 0xc]
add edi, dword [esp + 0x2c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x68], ecx
jb 0x47d529
call fcn.004ac063
mov esi, dword [ebp + 0x24]
add esi, dword [esp + 0x20]
mov eax, 0x2aaaaaab
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x6c], eax
jb 0x47d552
call fcn.004ac063
mov esi, dword [esi + 0xc]
add esi, dword [esp + 0x14]
mov eax, 0x66666667
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x47d579
call fcn.004ac063
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + eax]
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x24]
push ebp
call fcn.0047f680
mov edx, dword [ebp + 0x13c]
sub edx, dword [ebp + 0x138]
sar edx, 2
cmp dword [esp + 0x68], edx
jb 0x47d5aa
call fcn.004ac063
mov eax, dword [ebp + 0x138]
mov ecx, dword [esp + 0x68]
mov ecx, dword [eax + ecx*4]
mov eax, dword [esp + 0x24]
mov edx, dword [ecx]
mov edx, dword [edx]
push eax
mov eax, dword [esp + 0x34]
push eax
call edx
test eax, eax
jge 0x47d5d2
dec ebx
mov dword [esp + 0x28], ebx
jmp 0x47d5d9
jle 0x47d5e9
inc ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x1c], eax
jle 0x47d390
jmp 0x47d5f2
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x64], 1
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebp + 0x28]
sub ecx, dword [ebp + 0x24]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x47d61a
call fcn.004ac063
mov esi, dword [ebp + 0x24]
add esi, dword [esp + 0x20]
mov eax, 0x2aaaaaab
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x6c], eax
jb 0x47d643
call fcn.004ac063
mov esi, dword [esi + 0xc]
mov eax, dword [esi + ebx + 0xc]
add esi, ebx
mov dword [esp + 0x30], eax
cmp eax, dword [esi + 0x10]
jbe 0x47d65a
call fcn.004ac063
mov eax, dword [esi]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x47d68c
call fcn.004ac063
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
lea edx, [edx + edx*4]
shl edx, 4
add esi, edx
cmp esi, dword [ecx + 0x10]
ja 0x47d697
test eax, eax
je 0x47d690
mov eax, dword [eax]
jmp 0x47d692
mov ecx, dword [eax]
jmp 0x47d66f
xor eax, eax
cmp esi, dword [eax + 0xc]
jae 0x47d69c
call fcn.004ac063
cmp byte [esp + 0x64], 0
mov dword [esp + 0x18], esi
je 0x47daef
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
lea esi, [ebp + 0x30]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x47d6ce
call fcn.004ac063
mov ecx, dword [esi + 0xc]
mov eax, edi
imul eax, eax, 0x2c
cmp dword [ecx + eax + 0x1c], 0
mov dword [esp + 0x30], eax
jl 0x47daef
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x47d705
call fcn.004ac063
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x30]
mov eax, dword [edx + ecx]
shr eax, 5
test al, 1
jne 0x47d750
mov edi, dword [esp + 0x68]
call fcn.004845d0
mov ecx, dword [eax]
shr ecx, 6
test cl, 1
jne 0x47d750
xor edi, edi
lea esi, [esp + 0x90]
call fcn.00484890
push eax
lea esi, [esp + 0x18]
call fcn.00484a70
mov edi, eax
add edi, 0x20
call fcn.00484460
jmp 0x47db71
mov ecx, dword [esp + 0xa0]
mov esi, dword [esp + 0x9c]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x47d77f
call fcn.004ac063
mov esi, dword [esp + 0x9c]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
lea edi, [esi + 0xc]
sar ecx, 2
test ecx, ecx
ja 0x47d794
call fcn.004ac063
mov edx, dword [edi]
mov eax, dword [edx]
lea edx, [eax + 2]
jmp 0x47d7a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47d7a0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 6]
push eax
lea ecx, [esp + 0x3c]
call fcn.00409710
mov esi, dword [esp + 0x88]
sub esi, dword [esp + 0x84]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xb8]
sub eax, dword [esp + 0xb4]
sar esi, 2
sar eax, 2
cmp esi, eax
jb 0x47d7ec
call fcn.004ac063
mov ecx, dword [esp + 0xb4]
mov ebx, dword [esp + 0x9c]
lea esi, [ecx + esi*4]
mov ecx, dword [esp + 0xa0]
sub ecx, ebx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x47d825
call fcn.004ac063
mov ebx, dword [esp + 0x9c]
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
lea edi, [ebx + 0xc]
sar ecx, 2
test ecx, ecx
ja 0x47d83a
call fcn.004ac063
mov eax, dword [edi]
mov edx, dword [esi]
mov eax, dword [eax]
mov ecx, dword [esp + 0x2c]
push ebp
call fcn.0047f680
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x6c], 0
test ebx, ebx
jne 0x47da0c
call fcn.004ac063
xor eax, eax
mov esi, dword [esp + 0x18]
cmp esi, dword [eax + 0x10]
jb 0x47d873
call fcn.004ac063
mov ecx, dword [esi + 0x30]
sub ecx, dword [esi + 0x2c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
lea edx, [edx + ecx - 1]
mov dword [esp + 0x28], edx
test edx, edx
jl 0x47da44
jmp 0x47d8a0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x6c]
add eax, edx
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x14]
sar ebx, 1
test eax, eax
jne 0x47da13
call fcn.004ac063
xor eax, eax
mov esi, dword [esp + 0x18]
cmp esi, dword [eax + 0x10]
jb 0x47d8d2
call fcn.004ac063
mov ecx, dword [esi + 0x30]
sub ecx, dword [esi + 0x2c]
add esi, 0x20
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x47d8f5
call fcn.004ac063
mov esi, dword [esi + 0xc]
lea eax, [ebx + ebx*2]
add eax, eax
add eax, eax
add eax, eax
mov edx, dword [esi + eax + 0x10]
sub edx, dword [esi + eax + 0xc]
add esi, eax
sar edx, 2
mov dword [esp + 0x30], eax
test edx, edx
ja 0x47d91b
call fcn.004ac063
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47d923
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 6]
push eax
lea ecx, [esp + 0x3c]
call fcn.00409710
mov esi, dword [esp + 0x88]
mov ecx, dword [esp + 0xb8]
sub esi, dword [esp + 0x84]
sub ecx, dword [esp + 0xb4]
sar esi, 2
sar ecx, 2
mov edi, eax
cmp esi, ecx
jb 0x47d96d
call fcn.004ac063
mov edx, dword [esp + 0xb4]
lea eax, [edx + esi*4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x47da1a
call fcn.004ac063
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x47d99c
call fcn.004ac063
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x30]
sub ecx, dword [eax + 0x2c]
add eax, 0x20
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x47d9c3
call fcn.004ac063
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0x2c]
add esi, dword [esp + 0x30]
add eax, 0x20
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
sar ecx, 2
test ecx, ecx
ja 0x47d9e3
call fcn.004ac063
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x24]
mov edx, dword [edx]
mov eax, dword [eax]
push ebp
mov ecx, edi
call fcn.0047f680
mov eax, dword [esp + 0x2c]
mov ecx, edi
call fcn.0047c300
test eax, eax
jge 0x47da21
dec ebx
mov dword [esp + 0x28], ebx
jmp 0x47da28
mov eax, dword [ebx]
jmp 0x47d865
mov eax, dword [eax]
jmp 0x47d8c4
mov eax, dword [eax]
jmp 0x47d98e
jle 0x47da38
inc ebx
mov dword [esp + 0x6c], ebx
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x6c], ecx
jle 0x47d8a0
jmp 0x47da3c
mov dword [esp + 0x6c], ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x47dae4
call fcn.004ac063
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x47da5d
call fcn.004ac063
mov edi, dword [esi + 0x2c]
add esi, 0x20
cmp edi, dword [esi + 0x10]
jbe 0x47da6d
call fcn.004ac063
mov edx, dword [esi]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x34], edi
lea edi, [esp + 0x30]
mov dword [esp + 0x30], edx
call fcn.00484af0
mov ecx, dword [esp + 0xa0]
sub ecx, dword [esp + 0x9c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x47daaa
call fcn.004ac063
mov edi, dword [esp + 0x9c]
test ebx, ebx
jne 0x47daeb
call fcn.004ac063
mov ecx, dword [esp + 0x18]
cmp ecx, dword [ebx + 0x10]
jb 0x47dac8
call fcn.004ac063
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
push edi
lea ecx, [esp + 0x3c]
push ecx
mov eax, esi
call fcn.00484500
jmp 0x47db71
mov eax, dword [ebx]
jmp 0x47da53
mov ebx, dword [ebx]
jmp 0x47daba
mov ecx, dword [ebp + 0x28]
sub ecx, dword [ebp + 0x24]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x47db0f
call fcn.004ac063
mov esi, dword [ebp + 0x24]
add esi, dword [esp + 0x20]
mov eax, 0x2aaaaaab
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x6c], ecx
jb 0x47db38
call fcn.004ac063
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x3c]
push edx
add eax, ebx
call fcn.00484760
mov eax, dword [ebp + 0x70]
sub eax, dword [ebp + 0x6c]
sar eax, 2
cmp edi, eax
jb 0x47db68
call fcn.004ac063
mov ecx, dword [ebp + 0x6c]
inc dword [ecx + edi*4]
lea edi, [ecx + edi*4]
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov edi, dword [esp + 0x68]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x47db95
call fcn.004ac063
mov ecx, dword [ebp + 0x3c]
mov esi, edi
imul esi, esi, 0x2c
cmp dword [esi + ecx + 0x1c], 0
jl 0x47dbf0
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x47dbc4
call fcn.004ac063
mov ecx, dword [ebp + 0xb8]
mov eax, dword [ebp + 0x3c]
sub ecx, dword [ebp + 0xb4]
add eax, esi
mov esi, dword [eax + 0x1c]
sar ecx, 2
cmp esi, ecx
jb 0x47dbe4
call fcn.004ac063
mov edx, dword [ebp + 0xb4]
inc dword [edx + esi*4]
lea eax, [edx + esi*4]
mov byte [esp + 0x5c], 0
mov esi, dword [esp + 0x48]
test esi, esi
je 0x47dc10
mov edi, dword [esp + 0x44]
mov eax, esi
mov esi, dword [esi + 4]
push eax
call edi
add esp, 4
test esi, esi
jne 0x47dc01
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x60], 0xffffffff
call fcn.0047a450
mov al, byte [esp + 0x64]
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x5c