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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f03fb
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebx + 0x2694]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x14], ebx
call edx
test eax, eax
je 0x477841
mov eax, 0xe000000a
jmp 0x478281
mov eax, dword [ebx + 0x369c]
test eax, eax
je 0x47785e
push eax
call fcn.0059b877
add esp, 4
mov dword [ebx + 0x369c], 0
mov eax, dword [ebx + 0x2678]
xor ecx, ecx
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0059b872
mov esi, dword [ebx + 0x2678]
mov dword [ebx + 0x369c], eax
xor ecx, ecx
add esp, 4
mov eax, esi
mov edx, 0x20
mul edx
seto cl
mov byte [esp + 0x13], 0
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0059b872
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
mov dword [esp + 0x250], 0
je 0x4778e8
push 0x476360
push 0x476340
push esi
lea edi, [eax + 4]
push 0x20
push edi
mov dword [eax], esi
call fcn.005b9f87
mov esi, edi
mov dword [esp + 0x20], edi
jmp 0x4778ee
xor esi, esi
mov dword [esp + 0x20], esi
xor edi, edi
mov dword [esp + 0x250], 0xffffffff
cmp dword [ebx + 0x2678], edi
jbe 0x477ab3
mov dword [esp + 0x18], edi
add esi, 0x18
mov edi, edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x13]
push 4
mov dword [esi - 8], edi
mov dword [esi], ecx
mov dword [esi - 0x18], edx
call fcn.0059b847
add esp, 4
test eax, eax
je 0x477936
mov dword [eax], 0xffffffff
jmp 0x477938
xor eax, eax
push 4
mov dword [esi - 0x14], eax
call fcn.0059b847
add esp, 4
test eax, eax
je 0x477951
mov dword [eax], 0xffffffff
jmp 0x477953
xor eax, eax
push 0x14
mov dword [esi - 0x10], eax
call fcn.0059b847
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x477997
cmp byte [0x65a774], 0
mov dword [ebx + 0x10], 0xffffffff
jne 0x477993
lea eax, [esp + 0xac]
push eax
push 0x202
call fcn.005da0f8
test eax, eax
jne 0x477993
mov byte [0x65a774], 1
mov eax, ebx
jmp 0x477999
xor eax, eax
push 0
mov dword [esi - 0xc], eax
call fcn.005b8b28
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebx + 0x369c]
mov dword [ecx + edi*8], eax
mov dword [ecx + edi*8 + 4], edx
mov eax, dword [ebx + 0x2690]
mov ecx, dword [esp + 0x1c]
add esp, 4
cmp dword [eax + ecx + 0x1c], 0
jl 0x477a76
jg 0x4779db
mov edx, ecx
cmp dword [eax + edx + 0x18], 0
jbe 0x477a76
push 4
call fcn.0059b847
mov ebx, eax
add esp, 4
mov dword [esp + 0x3c], ebx
test ebx, ebx
mov dword [esp + 0x250], 1
je 0x477a39
push 0x18
call fcn.0059b847
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x477a21
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0x10], 0xffffffff
mov byte [eax + 8], cl
mov dword [eax + 0x14], ecx
mov dword [eax + 0xc], ecx
jmp 0x477a23
xor eax, eax
cmp eax, ecx
mov dword [ebx], eax
je 0x477a3b
lea ecx, [esi - 0x18]
mov dword [eax], ecx
mov eax, dword [ebx]
mov dword [eax + 4], 0x477040
jmp 0x477a3b
xor ebx, ebx
test ebx, ebx
mov dword [esp + 0x250], 0xffffffff
mov dword [esp + 0x48], ebx
je 0x477bb2
mov ecx, dword [esp + 0x14]
push edi
add ecx, 0x2680
lea eax, [esp + 0x4c]
call fcn.004795e0
add esp, 4
mov eax, ebx
call fcn.004303f0
mov ebx, dword [esp + 0x14]
jmp 0x477a98
push edi
lea ecx, [ebx + 0x2680]
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0
call fcn.004795e0
add esp, 4
mov dword [esi + 4], 0
add dword [esp + 0x18], 0x28
add edi, 1
add esi, 0x20
cmp edi, dword [ebx + 0x2678]
jb 0x477910
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0x2678]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0059b872
mov esi, eax
mov eax, dword [ebx + 0x2678]
xor ecx, ecx
add esp, 4
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x2c], esi
neg ecx
or ecx, eax
push ecx
call fcn.0059b872
add esp, 4
sub esi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x3c], esi
lea esp, [esp]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
xor ebx, ebx
xor edi, edi
add eax, 0x1c
mov dword [esp + 0x1c], eax
jmp 0x477b30
mov ecx, dword [edx + 0x2684]
test ecx, ecx
je 0x477bda
mov eax, dword [edx + 0x2688]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x477bda
mov eax, dword [esp + 0x1c]
cmp dword [eax], 0
je 0x477bcd
test ecx, ecx
je 0x477b6d
mov eax, dword [edx + 0x2688]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x477b76
call fcn.005b8b18
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x2684]
cmp dword [ecx + edi*4], 0
je 0x477bcd
test ecx, ecx
je 0x477b95
mov eax, dword [edx + 0x2688]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x477b9e
call fcn.005b8b18
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x2684]
mov eax, dword [eax + edi*4]
mov eax, dword [eax]
test eax, eax
je 0x477bbc
mov eax, dword [eax + 0x10]
jmp 0x477bbe
mov eax, 0x80004005
jmp 0x478281
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword [ecx + esi], eax
mov dword [esi], edi
add ebx, 1
add esi, 4
add edi, 1
add dword [esp + 0x1c], 0x20
jmp 0x477b30
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x47806e
mov edx, dword [esp + 0x2c]
mov edi, dword [0x5fd35c]
push 0x14d
push 0
push edx
push ebx
mov dword [esp + 0x38], 0
call edi
mov esi, eax
cmp esi, 0x102
jne 0x477c3e
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x2694]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
test eax, eax
jne 0x478086
mov ecx, dword [esp + 0x2c]
push 0x14d
push eax
push ecx
push ebx
call edi
mov esi, eax
cmp esi, 0x102
je 0x477c0d
cmp esi, ebx
jae 0x4780b0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + esi*4]
mov edx, dword [esp + 0x20]
shl eax, 5
mov eax, dword [eax + edx + 0x1c]
test eax, eax
je 0x477b10
cmp eax, 0xe0000007
jne 0x478098
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x369a], 0
jne 0x477c8d
movzx edx, word [eax + 0x2662]
lea edi, [eax + 0x1008]
lea ecx, [eax + 0x1808]
jmp 0x477c9d
movzx edx, word [eax + 0x2660]
lea edi, [eax + 8]
lea ecx, [eax + 0x808]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x4c]
push eax
mov ecx, edx
push ecx
mov ecx, dword [esp + 0x38]
push edi
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], edi
call fcn.00476f10
test eax, eax
jne 0x477e27
mov edx, dword [esp + 0x4c]
cmp edx, dword [ebx + 0x2668]
jne 0x477e93
mov eax, dword [esp + 0x50]
cmp eax, dword [ebx + 0x266c]
jne 0x477e93
mov ecx, ebx
sub ecx, edi
mov eax, edi
lea edx, [ecx + 0x2698]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x477cf3
mov dx, word [esp + 0x38]
mov eax, dword [esp + 0x30]
mov word [ebx + 0x3698], dx
sub ebx, eax
lea edx, [ebx + 0x2e98]
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x477d20
cmp byte [esp + 0x13], 0
jne 0x477f16
mov ecx, dword [esp + 0x20]
mov eax, esi
shl eax, 5
mov ebx, dword [eax + ecx + 4]
lea edi, [eax + ecx]
mov eax, dword [ebx]
cmp eax, 0xffffffff
mov dword [esp + 0x28], edi
je 0x477d66
push eax
call dword [0x5fd3a4]
test eax, eax
je 0x477d66
mov dword [ebx], 0xffffffff
mov ebx, dword [edi + 8]
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x477d81
push eax
call dword [0x5fd3a4]
test eax, eax
je 0x477d81
mov dword [ebx], 0xffffffff
mov edi, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
push edx
call fcn.005da0c2
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0x2684]
add edi, 0x2680
test ecx, ecx
je 0x477dad
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x477db2
call fcn.005b8b18
mov eax, dword [edi + 4]
mov edi, dword [eax + esi*4]
test edi, edi
je 0x477dc1
call fcn.00405f30
mov edi, dword [esp + 0x14]
add edi, 0x2680
push esi
mov eax, edi
call fcn.00479670
add esp, 4
push 4
call fcn.0059b847
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
test ebx, ebx
mov dword [esp + 0x250], 2
je 0x477ebe
push 0x18
call fcn.0059b847
add esp, 4
test eax, eax
je 0x477ea3
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0x10], 0xffffffff
mov byte [eax + 8], cl
mov dword [eax + 0x14], ecx
mov dword [eax + 0xc], ecx
jmp 0x477ea7
cmp eax, 0xe0000005
jne 0x477e93
mov edx, dword [esp + 0x18]
mov eax, dword [edx + esi*4]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
shl eax, 5
add dword [eax + edi + 0x14], 1
add ecx, 1
cmp ecx, 4
lea eax, [eax + edi + 0x14]
mov dword [esp + 0x28], ecx
jg 0x477f09
mov ecx, dword [edx + esi*4]
shl ecx, 5
mov eax, dword [ecx + edi + 0x14]
xor edx, edx
mov ecx, 3
div ecx
test edx, edx
jne 0x477e93
lea edx, [esp + 0x40]
push edx
mov edi, ebx
lea ecx, [esp + 0x34]
lea edx, [esp + 0x3c]
mov eax, edi
call fcn.00479500
call fcn.00479590
test al, al
jne 0x478061
cmp dword [esp + 0x28], 4
jle 0x477c6b
jmp 0x477d2f
xor eax, eax
xor ecx, ecx
cmp eax, ecx
mov dword [ebx], eax
je 0x477ec0
mov ecx, dword [esp + 0x28]
mov dword [eax], ecx
mov edx, dword [ebx]
mov dword [edx + 4], 0x477040
jmp 0x477ec0
xor ebx, ebx
test ebx, ebx
mov dword [esp + 0x250], 0xffffffff
mov dword [esp + 0x34], ebx
je 0x477bb2
push esi
lea eax, [esp + 0x38]
mov ecx, edi
call fcn.004795e0
add esp, 4
mov eax, ebx
call fcn.004303f0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + esi*4]
mov edx, dword [esp + 0x20]
shl ecx, 5
add dword [ecx + edx + 0x14], 1
lea eax, [ecx + edx + 0x14]
jmp 0x477b10
mov dword [esp + 0x24], 0xe0000005
mov byte [esp + 0x13], 1
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
push 0x14d
push 1
push edx
push ebx
call dword [0x5fd35c]
cmp eax, 0x102
jne 0x477f53
xor esi, esi
test ebx, ebx
jbe 0x477f53
mov edi, dword [0x5fd1a8]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + esi*4]
push 1
push ecx
call edi
add esi, 1
cmp esi, ebx
jb 0x477f40
cmp dword [esp + 0x20], 0
je 0x477f7b
mov eax, dword [esp + 0x20]
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x476360
push edx
push 0x20
push eax
call fcn.005ba04a
push esi
call fcn.0059b877
add esp, 4
mov eax, dword [esp + 0x2c]
push eax
call fcn.0059b877
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call fcn.0059b877
add esp, 4
xor edi, edi
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x2684]
test ecx, ecx
je 0x4780c2
mov eax, dword [ebx + 0x2688]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x4780c2
test ecx, ecx
je 0x477fcf
mov eax, dword [ebx + 0x2688]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x477fd4
call fcn.005b8b18
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x2684]
mov ebx, dword [edx + edi*4]
test ebx, ebx
je 0x47802a
mov esi, dword [ebx]
test esi, esi
je 0x47801d
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x478001
push eax
call dword [0x5fd3a4]
mov dword [esi + 0x10], 0xffffffff
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [ebx]
push eax
call fcn.0059b877
add esp, 4
mov dword [ebx], 0
push ebx
call fcn.0059b877
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, dword [ecx + 0x2684]
test edx, edx
je 0x478043
mov eax, dword [ecx + 0x2688]
sub eax, edx
sar eax, 2
cmp edi, eax
jb 0x47804c
call fcn.005b8b18
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x2684]
mov dword [ecx + edi*4], 0
add edi, 1
jmp 0x477f97
mov dword [esp + 0x24], 0xe000000a
jmp 0x477f11
cmp byte [esp + 0x13], 0
mov dword [esp + 0x24], 0
je 0x477f53
jmp 0x477f1a
mov dword [esp + 0x24], 0xe000000a
mov byte [esp + 0x13], 1
jmp 0x477f1a
mov eax, dword [ecx + esi*4]
shl eax, 5
mov ecx, dword [eax + edx + 0x1c]
mov dword [esp + 0x24], ecx
mov byte [esp + 0x13], 1
jmp 0x477f1a
mov dword [esp + 0x24], 1
mov byte [esp + 0x13], 1
jmp 0x477f1a
mov edi, dword [ebx + 0x2688]
cmp ecx, edi
jbe 0x4780d1
call fcn.005b8b18
mov esi, dword [ebx + 0x2684]
cmp esi, dword [ebx + 0x2688]
jbe 0x4780e4
call fcn.005b8b18
cmp esi, edi
je 0x47811b
mov eax, dword [ebx + 0x2688]
sub eax, edi
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea edx, [ecx + esi]
mov dword [esp + 0x34], edx
jle 0x478111
push ecx
push edi
push ecx
push esi
call fcn.005b85b9
add esp, 0x10
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x2688], eax
xor eax, eax
cmp dword [esp + 0x24], eax
jne 0x47827d
lea ecx, [ebx + 0x2008]
mov dword [esp + 0x88], eax
mov word [esp + 0x78], ax
mov ebx, 7
mov eax, ecx
mov dword [esp + 0x8c], ebx
lea esi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x478150
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x7c]
call fcn.00402770
mov edi, dword [esp + 0x14]
mov dword [esp + 0x250], 3
lea ecx, [edi + 0x2210]
mov dword [esp + 0x70], ebx
xor ebx, ebx
mov eax, ecx
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x478193
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x60]
call fcn.00402770
lea ecx, [esp + 0x74]
mov ebx, esi
mov byte [esp + 0x250], 4
call fcn.00438fa0
cmp dword [esp + 0x70], 8
jb 0x4781d4
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0059b877
add esp, 4
xor esi, esi
mov ebx, 7
mov dword [esp + 0x250], 0xffffffff
cmp dword [esp + 0x8c], 8
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], esi
mov word [esp + 0x5c], si
jb 0x47820a
mov edx, dword [esp + 0x78]
push edx
call fcn.0059b877
add esp, 4
lea edx, [edi + 0x2418]
mov eax, edx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xa4], esi
mov word [esp + 0x94], si
lea edi, [eax + 2]
jmp 0x478230
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x478230
sub eax, edi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x98]
call fcn.00402770
mov eax, esi
push eax
mov dword [esp + 0x254], 5
call fcn.004390c0
add esp, 4
cmp dword [esp + 0xa8], 8
jb 0x47827d
mov ecx, dword [esp + 0x94]
push ecx
call fcn.0059b877
add esp, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.005b88a9
mov esp, ebp
pop ebp
ret