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

Disassembly:
sub esp, 0x578
push ebp
mov ebp, dword [esp + 0x580]
push esi
push edi
mov eax, dword [ebp + 0x10]
cmp eax, 6
jne 0x5936d5
xor eax, eax
mov ax, word [ebp + 0x16]
cmp eax, 3
ja case.default.0x5935eb
jmp dword [eax*4 + 0x593a6c]
xor eax, eax
push 1
mov ax, word [ebp + 0x14]
mov ecx, 0xced988
push eax
call fcn.0053cd60
mov ecx, dword [0x62d4c4]
add ecx, 0x23
push ecx
call fcn.00575a50
mov edi, 0x674504
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.default.0x5935eb
mov edi, 0x6744e8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.default.0x5935eb
mov edi, 0x6744c4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.default.0x5935eb
mov ecx, dword [0x62d4c4]
add ecx, 0x23
push ecx
call fcn.00575a50
mov edi, 0x6744a4
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.default.0x5935eb
cmp eax, 0x49
jne case.default.0x5935eb
mov si, word [ebp + 0x14]
add ebp, 0x14
mov ecx, esi
mov eax, 0x66666667
and ecx, 0xffff
push ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov ebx, edx
mov ecx, 0xa
cdq
idiv ecx
xor eax, eax
mov dword [esp + 0x24], ebx
mov al, byte [ebp + 0x1a]
mov dword [esp + 0x20], edx
xor edx, edx
and eax, 0xff
mov dword [esp + 0x18], edx
jle 0x593739
lea ecx, [ebp + 0x1b]
cmp word [ecx], 0
jne 0x59372f
inc edx
add ecx, 2
dec eax
jne 0x593728
mov dword [esp + 0x18], edx
cmp si, 0x96
jae 0x5939d6
xor edx, edx
mov ecx, 0xced988
mov dx, word [ebp + 2]
push edx
call fcn.0053bf30
test eax, eax
je 0x5939d6
mov eax, dword [0xcf4750]
test eax, eax
je 0x593770
mov ecx, 0xced988
call fcn.0052dec0
mov eax, dword [0x62d4c4]
add eax, 0x3e
push eax
call fcn.00575a50
xor ecx, ecx
xor edx, edx
mov dx, word [ebp + 2]
mov dword [esp + 0x26e], ecx
mov dword [esp + 0x272], ecx
lea esi, [esp + 0x1f4]
mov dword [esp + 0x276], ecx
lea edi, [esp + 0x45c]
mov byte [esp + 0x27a], cl
mov ecx, 0x4c
mov dword [esp + 0x458], edx
add esp, 4
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x454]
lea ecx, [esp + 0x38]
push eax
push ecx
mov ecx, 0xced988
mov dword [esp + 0x24], 0
call fcn.00474ae0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x78]
test ecx, ecx
jle 0x5939d6
mov eax, dword [esp + 0x20]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*2]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea edx, [ecx*8 + 0xceda6c]
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
mov cx, word [ebp + 2]
mov dword [esp + 0x13a], eax
mov dword [esp + 0x13e], eax
mov dword [esp + 0x320], ecx
mov dword [esp + 0x142], eax
mov ecx, 0x4c
lea esi, [esp + 0xc0]
lea edi, [esp + 0x324]
mov byte [esp + 0x146], al
lea edx, [esp + 0x320]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x30]
push edx
push eax
mov ecx, 0xced988
mov dword [esp + 0x18], 0
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 0x74]
test ecx, ecx
mov dword [esp + 0x2c], edx
jle 0x593952
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
xor eax, eax
mov ax, word [ebp + 2]
xor ecx, ecx
mov dword [ebx - 4], eax
mov cl, byte [ebp + 0x19]
mov eax, dword [esp + 0x20]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
xor ecx, ecx
mov dword [ebx + 8], eax
mov cx, word [ebp + 0x2f]
mov dword [ebx + 0x10], ecx
lea edi, [ebx + 0x24]
mov ecx, 0x12
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
xor edx, edx
movsb byte es:[edi], byte [esi]
mov dl, byte [ebp + 0x1a]
xor eax, eax
mov ah, dl
xor edx, edx
or eax, ecx
xor ecx, ecx
mov dword [esp + 0x13a], ecx
mov word [ebx + 0x3d], ax
mov eax, dword [esp + 0x10]
mov dx, word [ebp + 2]
mov dword [esp + 0x13e], ecx
inc eax
mov dword [esp + 0x142], ecx
lea esi, [esp + 0xc0]
mov byte [esp + 0x146], cl
mov ecx, 0x4c
lea edi, [esp + 0x324]
mov dword [esp + 0x320], edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x320]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, 0xced988
add ebx, 0x88
call fcn.00474ae0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x74]
cmp edx, ecx
jl 0x59388b
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
xor eax, eax
xor ecx, ecx
mov cx, word [ebp + 2]
mov dword [esp + 0x26a], eax
add edi, 0x550
mov dword [esp + 0x26e], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x272], eax
mov dword [esp + 0x454], ecx
mov ecx, 0x4c
lea esi, [esp + 0x1f0]
lea edi, [esp + 0x458]
mov byte [esp + 0x276], al
lea edx, [esp + 0x454]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x38]
inc ebx
push edx
push eax
mov ecx, 0xced988
mov dword [esp + 0x24], ebx
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 0x78]
cmp ebx, ecx
mov dword [esp + 0x2c], edx
jl 0x593812
mov edi, 0x674478
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [0xd12280], 1
mov eax, ecx
mov esi, edi
mov edi, edx
pop ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0xa4f274]
test eax, eax
je 0x593a1c
lea ecx, [esp + 0x3c]
push 0
push ecx
call fcn.00586e90
add esp, 8
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
push 0
dec ecx
push 0
lea edx, [esp + 0x48]
push ecx
push edx
call fcn.004cbc90
add esp, 0x14
mov ecx, 0xcfa698
mov dword [0xcfa710], 0
call fcn.00557b20
mov ecx, 0xced988
call fcn.0052d360
call fcn.005133b0
pop edi
pop esi
pop ebp
add esp, 0x578
ret