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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x45c
mov ecx, dword [esp + 0x470]
mov ebx, dword [esp + 0x474]
mov edi, dword [esp + 0x478]
xor edx, edx
mov dword [esp + 0x458], edx
mov eax, dword [ebx + 8]
xor ebp, ebp
mov dword [esp + 0x454], eax
xor esi, esi
mov edx, dword [ecx + 0x37c0]
mov dword [esp + 0x408], 0
test edx, edx
jle 0x5f8378
mov eax, dword [ecx + 0x37cc]
mov dword [esp + 0x428], eax
mov eax, ebp
shl eax, 4
mov ebx, dword [esp + 0x428]
lea esi, [esi]
lea edi, [edi]
mov ecx, dword [eax + ebx + 8]
imul ecx, dword [eax + ebx + 4]
mov dword [esp + ebp*4 + 0x40c], ecx
add esi, ecx
add eax, 0x10
inc ebp
cmp ebp, edx
jl 0x5f8350
mov ebx, dword [esp + 0x474]
mov ecx, dword [esp + 0x470]
shl esi, 6
mov ebp, esi
xor edx, edx
imul ebp, dword [ecx + 0x78]
mov eax, dword [edi]
test eax, eax
jle 0x5f83f7
mov eax, edx
shl eax, 4
lea eax, [eax + edx*8]
mov dword [esp + 0x420], esi
mov dword [esp + 0x424], ebp
nop
mov ebx, dword [edi + 0x34]
mov ebx, dword [eax + ebx]
mov dword [edi + edx*4 + 0x24], 0
movsx ebp, byte [ebx + ecx + 0x37a0]
mov esi, dword [ecx + ebp*4 + 0x3704]
mov ebp, dword [edi + 0x34]
inc edx
mov dword [eax + ebp + 0xc], esi
movsx ebx, byte [ebx + ecx + 0x379c]
mov esi, dword [ecx + ebx*4 + 0x36f4]
mov ebp, dword [edi + 0x34]
mov dword [eax + ebp + 0x10], esi
add eax, 0x18
cmp edx, dword [edi]
jl 0x5f83a0
mov esi, dword [esp + 0x420]
mov ebp, dword [esp + 0x424]
mov ebx, dword [esp + 0x474]
mov eax, 8
mov dword [ebx + 0xc], 8
mov edx, dword [edi + 8]
test edx, edx
jne 0x5f85ad
mov edx, dword [edi + 0xc]
test edx, edx
jne 0x5f85ad
xor edx, edx
mov dword [esp + 0x428], edx
mov edx, dword [ecx + 0x7c]
test edx, edx
mov dword [esp + 0x42c], edx
jle 0x5f8922
mov edx, dword [ecx + 0x78]
add ebp, ebp
add esi, esi
mov dword [esp + 0x420], esi
mov eax, dword [esp + 0x42c]
mov dword [esp + 0x424], ebp
mov ebp, dword [esp + 0x428]
xor edi, edi
test edx, edx
jle 0x5f8595
mov eax, dword [esp + 0x478]
mov eax, dword [eax]
mov ebx, dword [esp + 0x424]
imul ebx, ebp
mov esi, dword [esp + 0x420]
imul esi, edi
mov dword [esp + 0x44c], ebx
mov dword [esp + 0x428], ebp
mov ebp, dword [ecx + 0x4de4]
xor ebx, ebx
add ebp, dword [esp + 0x44c]
add ebp, esi
test eax, eax
jle 0x5f857b
mov edx, dword [esp + 0x478]
lea edx, [edx + ebx*4]
mov dword [esp + 0x448], esi
mov dword [esp + 0x450], edi
mov edi, dword [esp + 0x478]
xor esi, esi
mov ecx, dword [esp + ebx*4 + 0x40c]
test ecx, ecx
jle 0x5f8557
lea eax, [edx + 0x24]
mov ecx, ebx
shl ecx, 4
lea ecx, [ecx + ebx*8]
mov dword [esp + 0x440], ecx
mov dword [esp + 0x444], eax
mov dword [esp + 0x43c], edx
lea esi, [esi]
lea edi, [edi]
mov eax, dword [esp + 0x474]
mov edx, dword [esp + 0x440]
mov ecx, dword [esp + 0x444]
mov dword [esp], eax
mov eax, dword [edi + 0x34]
mov eax, dword [edx + eax + 0xc]
mov dword [esp + 4], eax
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
call fcn.005cb280
add ebp, 0x80
inc esi
cmp esi, dword [esp + ebx*4 + 0x40c]
jl 0x5f8500
mov edx, dword [esp + 0x43c]
mov eax, dword [edi]
add edx, 4
inc ebx
cmp ebx, eax
jl 0x5f84c4
mov esi, dword [esp + 0x448]
mov edi, dword [esp + 0x450]
mov ecx, dword [esp + 0x470]
mov edx, dword [ecx + 0x78]
add esi, dword [esp + 0x420]
inc edi
cmp edi, edx
jl 0x5f848c
mov ebp, dword [esp + 0x428]
mov eax, dword [ecx + 0x7c]
inc ebp
cmp ebp, eax
jl 0x5f8457
mov ebx, dword [esp + 0x474]
mov eax, dword [ebx + 0xc]
jmp 0x5f8922
mov eax, dword [edi + 0x34]
xor edx, edx
mov dword [esp + 0x434], eax
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x428], edx
mov edx, 0
mov dword [esp + 0x42c], edx
jle 0x5f866a
cmp eax, 6
jl 0x5f8646
lea edx, [eax - 6]
mov ecx, dword [esp + 0x428]
mov dword [esp + 0x430], edx
mov edx, dword [esp + 0x42c]
mov ebx, dword [esp + 0x430]
lea esi, [esi]
add edx, dword [esp + ecx*4 + 0x40c]
add edx, dword [esp + ecx*4 + 0x410]
add edx, dword [esp + ecx*4 + 0x414]
add edx, dword [esp + ecx*4 + 0x418]
add edx, dword [esp + ecx*4 + 0x41c]
add ecx, 5
cmp ecx, ebx
jle 0x5f8600
mov dword [esp + 0x42c], edx
mov ebx, dword [esp + 0x474]
mov dword [esp + 0x428], ecx
mov ecx, dword [esp + 0x470]
mov ecx, edx
mov edx, dword [esp + 0x428]
nop
add ecx, dword [esp + edx*4 + 0x40c]
inc edx
cmp edx, eax
jl 0x5f8650
mov dword [esp + 0x42c], ecx
mov ecx, dword [esp + 0x470]
xor eax, eax
mov dword [esp + 0x428], eax
mov eax, dword [ecx + 0x7c]
test eax, eax
jle 0x5f88e3
mov edx, dword [esp + 0x434]
mov edx, dword [edx + 8]
add ebp, ebp
mov dword [esp + 0x430], edx
add esi, esi
mov edx, dword [esp + 0x42c]
shl edx, 7
mov ebx, dword [esp + 0x428]
mov dword [esp + 0x42c], edx
mov edx, dword [esp + 0x430]
mov dword [esp + 0x420], esi
xor esi, esi
test edx, edx
jle 0x5f88d3
mov edi, ebp
imul edi, ebx
lea eax, [esi + esi]
add eax, eax
add eax, eax
mov dword [esp + 0x448], edi
mov edi, dword [esp + 0x434]
mov dword [esp + 0x428], ebx
mov dword [esp + 0x424], ebp
lea ebx, [edx + edx]
add ebx, ebx
add ebx, ebx
imul ebx, dword [esp + 0x428]
add ebx, eax
cmp ebx, dword [ecx + 0x50]
jge 0x5f8a10
xor ebx, ebx
mov dword [esp + 0x438], ebx
mov ebx, dword [ecx + 0x78]
test ebx, ebx
jle 0x5f88af
mov ebp, dword [edi + 4]
mov dword [esp + 0x440], ebp
mov ebp, dword [esp + 0x420]
imul ebp, dword [esp + 0x438]
mov dword [esp + 0x43c], ebp
mov dword [esp + 0x444], eax
mov eax, dword [esp + 0x440]
mov dword [esp + 0x44c], esi
mov ebp, dword [ecx + 0x4de4]
mov esi, edx
shl esi, 7
imul esi, dword [esp + 0x44c]
add ebp, dword [esp + 0x448]
add ebp, dword [esp + 0x43c]
add esi, dword [esp + 0x42c]
add esi, ebp
xor ebp, ebp
test eax, eax
mov dword [esp + 0x450], ebp
jle 0x5f8875
mov edx, ebp
lea ebp, [edx + edx]
add ebp, ebp
add ebp, ebp
mov ebx, dword [esp + 0x478]
lea esi, [esi]
lea ecx, [eax + eax]
add ecx, ecx
add ecx, ecx
imul ecx, dword [esp + 0x438]
add ecx, ebp
mov edx, dword [esp + 0x470]
cmp ecx, dword [edx + 0x4c]
jge 0x5f89ef
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x5f8800
mov eax, dword [esp + 0x474]
mov ecx, dword [edi + 0x10]
mov edx, dword [ebx + 8]
mov dword [esp], eax
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 0x14]
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
call fcn.005cbaf0
jmp 0x5f8842
mov eax, dword [esp + 0x474]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 0x14]
mov dword [esp], eax
mov eax, dword [edi + 0x10]
lea edi, [esp + 0x408]
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
call fcn.005cbcf0
add esi, 0x80
add ebp, 8
mov edx, dword [esp + 0x450]
inc edx
mov edi, dword [ebx + 0x34]
mov eax, dword [edi + 4]
mov dword [esp + 0x450], edx
cmp edx, eax
jl 0x5f87a0
mov ecx, dword [esp + 0x470]
mov ebx, dword [ecx + 0x78]
mov edx, dword [edi + 8]
mov ebp, dword [esp + 0x43c]
mov esi, dword [esp + 0x438]
inc esi
add ebp, dword [esp + 0x420]
cmp esi, ebx
mov dword [esp + 0x43c], ebp
mov dword [esp + 0x438], esi
jl 0x5f874e
mov eax, dword [esp + 0x444]
mov esi, dword [esp + 0x44c]
add eax, 8
inc esi
cmp esi, edx
jl 0x5f86eb
mov dword [esp + 0x434], edi
mov ebx, dword [esp + 0x428]
mov ebp, dword [esp + 0x424]
mov eax, dword [ecx + 0x7c]
inc ebx
cmp ebx, eax
jl 0x5f86b9
mov ebx, dword [esp + 0x474]
mov dword [esp], ebx
mov edx, dword [esp + 0x434]
mov eax, dword [edx + 0x10]
mov dword [esp + 4], eax
call fcn.005cb420
mov dword [esp], ebx
lea edx, [esp + 0x20]
lea eax, [esp + 0x408]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.005cb660
mov dword [esp + 0x408], 0
mov eax, dword [ebx + 0xc]
cmp eax, 8
jge 0x5f89d3
mov edx, dword [ebx + 0x10]
cmp edx, dword [ebx + 0x18]
jb 0x5f8990
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x5f894b
mov eax, 0xffffffe4
mov dword [esp + 0x458], eax
jmp 0x5f89d3
mov dword [esp], eax
lea edx, [ebx + 0x40]
lea eax, [esp + 0x41c]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x1000
mov dword [esp + 0xc], eax
call fcn.005c4ce0
test eax, eax
je 0x5f897f
mov eax, dword [esp + 0x41c]
cmp eax, 0x1000
je 0x5f898d
mov eax, 0xffffffe9
mov dword [esp + 0x458], eax
jmp 0x5f89d3
mov edx, dword [ebx + 0x14]
movzx eax, byte [ebx]
lea ecx, [edx + 1]
mov dword [ebx + 0x10], ecx
mov byte [edx], al
inc dword [ebx + 0x1c]
cmp eax, 0xff
jne 0x5f89b4
mov eax, dword [ebx + 0x10]
lea edx, [eax + 1]
mov dword [ebx + 0x10], edx
mov byte [eax], 0
inc dword [ebx + 0x1c]
xor edx, edx
mov eax, dword [ebx + 0x34]
cmp eax, 2
mov dword [ebx], edx
mov dword [ebx + 4], edx
jle 0x5f89cc
mov dword [ebx + 0xc], 0
jmp 0x5f89d3
mov dword [ebx + 0xc], 8
mov eax, dword [esp + 0x454]
call dword [eax + 0x18]
mov eax, dword [esp + 0x458]
add esp, 0x45c
pop ebx
pop ebp
pop esi
pop edi
ret
mov ecx, dword [esp + 0x470]
mov ebx, dword [ecx + 0x78]
mov edx, dword [edi + 8]
jmp 0x5f8875
mov dword [esp + 0x434], edi
mov ebx, dword [esp + 0x428]
mov ebp, dword [esp + 0x424]
mov eax, dword [ecx + 0x7c]
jmp 0x5f88d3