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

Disassembly:
push 0xffffffffffffffff
push 0x52d316
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x568fd0]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x568fd0]
xor eax, esp
push eax
lea eax, [esp + 0x454]
mov dword fs:[0], eax
mov eax, dword [esp + 0x464]
mov ebx, ecx
cmp dword [ebx + 0x78], 0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x3c], eax
jne 0x477694
movzx esi, byte [ebx + 0x3d]
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ecx]
push esi
movzx esi, byte [ebx + 0x3c]
push esi
push eax
mov eax, dword [edx + 0x4c]
call eax
lea ebp, [ebx + 0x40]
mov ecx, ebp
call fcn.00477f90
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
xor esi, esi
mov dword [esp + 0x18], esi
call eax
test eax, eax
jle 0x4779b1
lea esp, [esp]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.00477f20
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
inc esi
mov dword [esp + 0x18], esi
call eax
cmp esi, eax
jl 0x477670
jmp 0x4779b1
push ebx
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.00477370
lea esi, [ebx + 0x40]
mov ecx, esi
mov dword [esp + 0x45c], 0
call fcn.00477f90
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x30]
xor ebp, ebp
sar eax, 2
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x40], ebp
test eax, eax
jle 0x4776f5
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.00477f20
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x30]
inc ebp
sar eax, 2
cdq
sub eax, edx
sar eax, 1
cmp ebp, eax
mov dword [esp + 0x40], ebp
jl 0x4776d0
mov ecx, dword [esp + 0x1c]
sub esp, 0x20
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x44]
mov dword [esp + 0x60], esp
push ecx
lea ecx, [eax + 8]
mov dword [eax + 4], edx
call fcn.00477e40
mov edi, dword [esi + 0x10]
cmp dword [esi + 0xc], edi
jbe 0x477725
call fcn.00501daa
mov ebp, dword [esi + 0xc]
mov edx, dword [esi]
mov dword [esp + 0x60], edx
cmp ebp, dword [esi + 0x10]
jbe 0x477738
call fcn.00501daa
mov ecx, dword [esp + 0x60]
mov eax, dword [esi]
push edi
push ecx
push ebp
push eax
call fcn.00478460
add esp, 0x30
cmp dword [ebx + 0x78], 2
je 0x47796c
mov edx, dword [esi + 0x10]
sub edx, dword [esi + 0xc]
sar edx, 2
cmp edx, 2
jb 0x47796c
xor edi, edi
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], edi
mov byte [esp + 0x4c], 0
mov byte [esp + 0x45c], 1
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
test eax, eax
jbe 0x4778cd
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
sar ecx, 2
cmp edi, ecx
jb 0x4777a4
call fcn.00501daa
mov eax, dword [esp + 0x34]
mov edx, dword [esi + 0xc]
mov ebx, dword [edx + edi*4]
mov ecx, eax
sub ecx, dword [esp + 0x30]
lea ebx, [ebx + ebx + 2]
sar ecx, 2
cmp ebx, ecx
jb 0x4777c8
call fcn.00501daa
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x30]
sar ecx, 2
lea ebp, [edx + ebx*4]
cmp edi, ecx
jb 0x4777e5
call fcn.00501daa
mov eax, dword [esp + 0x34]
mov edx, dword [esi + 0xc]
mov ebx, dword [edx + edi*4]
mov ecx, eax
sub ecx, dword [esp + 0x30]
add ebx, ebx
sar ecx, 2
cmp ebx, ecx
jb 0x477803
call fcn.00501daa
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov ebp, dword [ebp]
mov edx, dword [esp + 0x30]
sub ebp, dword [edx + ebx*4]
sar ecx, 2
cmp edi, ecx
jb 0x477823
call fcn.00501daa
mov eax, dword [esp + 0x34]
mov edx, dword [esi + 0xc]
sub eax, dword [esp + 0x30]
mov ebx, dword [edx + edi*4]
add ebx, ebx
sar eax, 2
cmp ebx, eax
jb 0x47783b
call fcn.00501daa
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + ebx*4]
add ecx, dword [esp + 0x3c]
push ebp
push ecx
lea edx, [esp + 0x6c]
push edx
call fcn.00509460
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
inc edi
sar eax, 2
add esp, 0xc
cmp edi, eax
jne 0x477877
test ebp, ebp
jle 0x477894
mov cl, byte [esp + ebp + 0x63]
mov edx, dword [esp + 0x18]
cmp cl, byte [edx + 0x3c]
jne 0x477894
dec ebp
jmp 0x477894
test ebp, ebp
je 0x477888
mov al, byte [esp + ebp + 0x63]
mov ecx, dword [esp + 0x18]
cmp al, byte [ecx + 0x3c]
je 0x477894
mov edx, dword [esp + 0x18]
mov al, byte [edx + 0x3c]
mov byte [esp + ebp + 0x64], al
inc ebp
lea eax, [esp + 0x64]
mov byte [esp + ebp + 0x64], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4778a0
sub eax, edx
push eax
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x50]
call fcn.00406e40
mov edx, dword [esi + 0x10]
sub edx, dword [esi + 0xc]
sar edx, 2
cmp edi, edx
jb 0x477792
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
xor ebp, ebp
test eax, 0xfffffffc
jle 0x477906
lea esp, [esp]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
sar ecx, 2
cmp ebp, ecx
jb 0x4778f2
call fcn.00501daa
mov edx, dword [esi + 0xc]
mov dword [edx + ebp*4], ebp
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
inc ebp
sar eax, 2
cmp ebp, eax
jl 0x4778e0
mov eax, dword [esp + 0x4c]
mov esi, 0x10
cmp dword [esp + 0x60], esi
jae 0x477919
lea eax, [esp + 0x4c]
movzx edi, byte [ebx + 0x3d]
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ecx]
push edi
movzx edi, byte [ebx + 0x3c]
push edi
push eax
mov eax, dword [edx + 0x4c]
call eax
cmp dword [esp + 0x60], esi
jb 0x477941
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00501b8f
add esp, 4
mov eax, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], esi
mov byte [esp + 0x4c], 0
cmp eax, esi
je 0x477965
push eax
call fcn.00501b8f
add esp, 4
mov edx, dword [esp + 0x24]
push edx
jmp 0x47799d
movzx edx, byte [ebx + 0x3d]
mov ecx, dword [ebx + 0x5c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
push edx
movzx edx, byte [ebx + 0x3c]
push edx
mov edx, dword [esp + 0x44]
push edx
call eax
mov eax, dword [esp + 0x30]
xor esi, esi
cmp eax, esi
je 0x477998
push eax
call fcn.00501b8f
add esp, 4
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call fcn.00501b8f
add esp, 4
mov ecx, dword [esp + 0x454]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.00501b9a
add esp, 0x44c
ret 4