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

Disassembly:
push 0xffffffffffffffff
push 0x5e41fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 0x274]
mov eax, dword [esp + 0x58]
xor ecx, ecx
inc edi
cmp eax, ecx
mov dword [esp + 0x3c], ecx
mov dword [esi + 0x274], edi
mov ebp, edi
je 0x417bc0
lea ebx, [eax + 0x1c]
jmp 0x417bc2
xor ebx, ebx
push ebx
mov ebx, dword [esp + 0x58]
push ebx
mov edx, dword [esp + 0x4c]
sub esp, 0x10
xor eax, eax
mov ebx, esp
mov edi, dword [esp + 0x60]
push ebp
mov dword [ebx], eax
mov dword [ebx + 4], ecx
lea ecx, [esi + 0x700]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
call fcn.004bb040
mov edi, eax
mov eax, dword [0x65290c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x50]
push ebp
lea edx, [esp + 0x48]
push ecx
push edx
mov byte [esp + 0x48], 1
call fcn.005bd692
mov eax, dword [esp + 0x50]
add esp, 0xc
mov ecx, edi
push eax
call fcn.004bdd80
mov eax, ebp
mov ecx, 6
cdq
idiv ecx
push 0xbc
inc edx
mov dword [edi + 0x78], edx
call fcn.005c00fd
add esp, 4
mov dword [esp + 0x58], eax
xor edi, edi
mov byte [esp + 0x3c], 2
cmp eax, edi
je 0x417c5a
mov ecx, eax
call fcn.005d3384
mov ebx, eax
mov dword [esp + 0x58], ebx
jmp 0x417c60
mov dword [esp + 0x58], edi
mov ebx, edi
xor edx, edx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], edx
mov ecx, esi
mov dword [esp + 0x24], edx
mov byte [esp + 0x3c], 1
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
call fcn.005d4630
mov eax, dword [eax + 0x3c]
lea ecx, [esp + 0x20]
push ecx
push edi
push edi
lea edx, [esp + 0x1c]
push esi
push edx
push 0x56000000
push edi
push edi
mov ecx, ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.005d3b7c
push edi
push edi
push 0x200
mov ecx, ebx
call fcn.005c40ee
mov ecx, dword [esi + 0x260]
mov eax, ebp
shr eax, 4
xor edx, edx
mov dword [esp + 0x48], ecx
div ecx
mov ecx, dword [esi + 0x25c]
cmp ecx, edi
mov ebx, edx
je 0x417d09
mov eax, dword [ecx + ebx*4]
cmp eax, edi
je 0x417d05
cmp dword [eax + 8], ebp
je 0x417cfd
mov eax, dword [eax]
cmp eax, edi
jne 0x417cf0
jmp 0x417d05
cmp eax, edi
jne 0x417dc6
cmp ecx, edi
jne 0x417d45
mov eax, dword [esp + 0x48]
lea edi, [eax*4]
push edi
call fcn.005c00fd
mov edx, eax
mov ecx, edi
mov dword [esi + 0x25c], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x48]
xor edi, edi
mov dword [esi + 0x260], eax
cmp dword [esi + 0x268], edi
jne 0x417d8b
mov ecx, dword [esi + 0x270]
push 0x10
lea edx, [esi + 0x26c]
push ecx
push edx
call fcn.005bf53a
mov ecx, dword [esi + 0x270]
mov edx, ecx
shl edx, 4
dec ecx
cmp ecx, edi
lea eax, [edx + eax - 0xc]
jl 0x417d8b
inc ecx
mov edx, dword [esi + 0x268]
mov dword [eax], edx
mov dword [esi + 0x268], eax
sub eax, 0x10
dec ecx
jne 0x417d77
mov eax, dword [esi + 0x268]
mov ecx, dword [eax]
mov dword [esi + 0x268], ecx
mov ecx, dword [esi + 0x264]
inc ecx
mov dword [esi + 0x264], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], ebp
mov edx, dword [esi + 0x25c]
mov ecx, dword [edx + ebx*4]
mov dword [eax], ecx
mov edx, dword [esi + 0x25c]
mov dword [edx + ebx*4], eax
mov ecx, dword [esp + 0x58]
mov byte [esp + 0x3c], 0
mov dword [eax + 0xc], ecx
lea ecx, [esp + 0x44]
call fcn.005c4b60
lea ecx, [esp + 0x50]
mov dword [esp + 0x3c], 0xffffffff
call fcn.005c4b60
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x54]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret 0x18