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

Disassembly:
sub esp, 0x5f8
mov dword [0xcfa710], 0
push ebx
push esi
mov esi, dword [esp + 0x604]
push edi
cmp dword [esi + 0x10], 6
jb case.default.0x5931bc
xor ebx, ebx
cmp word [esi + 0x14], 0x96
jae 0x59319a
mov ax, word [esi + 0x18]
cmp ax, 0x96
jae 0x593171
mov ecx, eax
mov eax, 0x66666667
and ecx, 0xffff
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov ecx, 0xa
lea edi, [edx + edx*4]
cdq
idiv ecx
lea eax, [edx + edi*2]
mov edx, eax
shl edx, 4
add edx, eax
mov ebx, dword [edx*8 + 0xceda68]
jmp 0x59319a
cmp ax, 0xc8
jb 0x59319a
cmp ax, 0xcf
jae 0x59319a
and eax, 0xffff
sub eax, 0xc8
lea ecx, [eax*8]
sub ecx, eax
lea edx, [eax + ecx*4]
mov ebx, dword [edx*4 + 0xcf2a18]
push ebx
mov ecx, 0xced988
call fcn.0053bf30
test eax, eax
je 0x5935a4
xor eax, eax
mov ax, word [esi + 0x16]
cmp eax, 3
ja case.default.0x5931bc
jmp dword [eax*4 + 0x5935b0]
push ebx
mov ecx, 0xced988
call fcn.005404d0
mov edi, eax
test edi, edi
je case.default.0x5931bc
xor eax, eax
push 1
mov ax, word [esi + 0x14]
mov ecx, 0xced988
push eax
call fcn.0053cd60
mov edx, dword [0x6d6810]
lea eax, [edi + 0x7a]
mov ecx, eax
mov dword [esp + 0x20], eax
mov dword [ecx], edx
mov edx, dword [0x6d6814]
mov dword [ecx + 4], edx
mov edx, dword [0x6d6818]
mov dword [ecx + 8], edx
mov dl, byte [0x6d681c]
mov byte [ecx + 0xc], dl
mov byte [edi + 0x86], 0
mov ecx, dword [0xa4f274]
test ecx, ecx
jne 0x593233
push 0
push eax
call fcn.00586e90
add esp, 8
xor ecx, ecx
mov eax, 0x66666667
mov cx, word [esi + 0x18]
push ebp
imul ecx
sar edx, 2
mov eax, edx
lea esi, [esp + 0x270]
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov ebp, edx
mov ecx, 0xa
cdq
idiv ecx
mov ecx, 0x4c
lea edi, [esp + 0x4d8]
mov dword [esp + 0x4d4], ebx
lea eax, [esp + 0x4d4]
push eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], edx
xor edx, edx
mov dword [esp + 0x2ee], edx
mov dword [esp + 0x2f2], edx
mov dword [esp + 0x2f6], edx
mov byte [esp + 0x2fa], dl
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, 0xced988
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 0x593481
mov eax, dword [esp + 0x1c]
lea edx, [ebp + ebp*4]
lea eax, [eax + edx*2]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea edx, [ecx*8 + 0xcedaa8]
mov dword [esp + 0x10], edx
xor eax, eax
mov ecx, 0x4c
mov dword [esp + 0x1ba], eax
lea esi, [esp + 0x140]
mov dword [esp + 0x1be], eax
lea edi, [esp + 0x3a4]
mov dword [esp + 0x1c2], eax
mov dword [esp + 0x3a0], ebx
mov byte [esp + 0x1c6], al
lea edx, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x3a0]
mov dword [esp + 0x14], 0
push ecx
push edx
mov ecx, 0xced988
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 0x593400
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
lea eax, [ebp - 0xc]
lea esi, [esp + 0x140]
lea edi, [esp + 0x3a4]
mov edx, dword [ecx]
mov dword [esp + 0x3a0], ebx
mov dword [eax], edx
add ebp, 0x88
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
xor edx, edx
mov cl, byte [ecx + 0xc]
mov dword [esp + 0x1ba], edx
mov byte [eax + 0xc], cl
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1be], edx
inc eax
mov dword [esp + 0x1c2], edx
mov ecx, 0x4c
mov byte [esp + 0x1c6], dl
mov dword [esp + 0x14], eax
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x3a0]
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [ebp - 0x88], 0
mov ecx, 0xced988
call fcn.00474ae0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x74]
cmp edx, ecx
jl 0x59335e
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add eax, 0x550
inc ecx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x2ea], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2ee], eax
mov ecx, 0x4c
mov dword [esp + 0x2f2], eax
lea esi, [esp + 0x270]
lea edi, [esp + 0x4d8]
mov byte [esp + 0x2f6], al
mov dword [esp + 0x4d4], ebx
lea edx, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x4d4]
push ecx
push edx
mov ecx, 0xced988
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0x78]
cmp ecx, edx
jl 0x5932eb
mov eax, dword [0xa4f274]
lea edx, [esp + 0x40]
test eax, eax
mov edi, 0x674464
jne 0x593498
mov edi, 0x674450
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x50]
push ecx
call fcn.004cbc90
add esp, 0x14
mov ecx, 0xcfa698
push 2
call fcn.00558260
mov eax, dword [esp + 0x1c]
lea edx, [ebp + ebp*4]
lea eax, [eax + edx*2]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea edx, [ecx*8 + 0xceda90]
mov ecx, 0xcfa698
push edx
call fcn.00557cb0
pop ebp
jmp case.default.0x5931bc
mov eax, dword [0xa4f274]
lea edx, [esp + 0x3c]
test eax, eax
mov edi, 0x674430
jne 0x593556
mov edi, 0x674410
jmp 0x593556
mov eax, dword [0xa4f274]
lea edx, [esp + 0x3c]
test eax, eax
mov edi, 0x6743f4
jne 0x593556
mov edi, 0x6743d8
jmp 0x593556
mov eax, dword [0xa4f274]
lea edx, [esp + 0x3c]
test eax, eax
mov edi, 0x6743c0
jne 0x593556
mov edi, 0x673f80
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x48]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x4c]
push ecx
call fcn.004cbc90
add esp, 0x14
mov ecx, 0xcfa698
call fcn.00557b20
call fcn.005133b0
pop edi
pop esi
pop ebx
add esp, 0x5f8
ret