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

Disassembly:
sub esp, 0x56c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x580]
cmp dword [edi + 0x10], 0xc
jne 0x593fd0
xor eax, eax
mov ax, word [edi + 0x1a]
cmp eax, 4
ja case.default.0x593aaa
jmp dword [eax*4 + 0x593fdc]
mov eax, dword [0xa4f274]
lea edx, [esp + 0x34]
test eax, eax
je 0x593ac8
mov edi, 0x67463c
jmp 0x593fa4
mov edi, 0x674624
jmp 0x593fa4
mov cx, word [edi + 0x14]
cmp cx, 0x96
jae 0x593de2
and ecx, 0xffff
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov esi, edx
mov ecx, 0xa
cdq
idiv ecx
lea eax, [esi + esi*4]
mov ecx, 0xced988
lea eax, [edx + eax*2]
mov ebx, eax
shl ebx, 4
add ebx, eax
shl ebx, 3
mov ebp, dword [ebx + 0xceda68]
push ebp
call fcn.0053bf30
test eax, eax
je 0x593fd0
xor edx, edx
xor ecx, ecx
mov cx, word [ebx + 0xcedabd]
xor eax, eax
mov ax, word [edi + 0x16]
mov dword [esp + 0x12e], edx
mov dword [esp + 0x132], edx
sub eax, ecx
mov dword [esp + 0x136], edx
mov ecx, 0x4c
lea esi, [esp + 0xb4]
lea edi, [esp + 0x1e8]
mov byte [esp + 0x13a], dl
mov dword [esp + 0x1e4], ebp
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1e4]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, 0xced988
call fcn.00474ae0
mov edx, eax
mov eax, dword [edx]
add eax, 0x10
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x3c]
push 0x674608
push eax
mov dword [esp + 0x30], ecx
call fcn.006133d6
xor ecx, ecx
add esp, 0x10
mov dword [esp + 0x12e], ecx
lea esi, [esp + 0xb4]
mov dword [esp + 0x132], ecx
lea edi, [esp + 0x1e8]
mov dword [esp + 0x136], ecx
mov dword [esp + 0x1e4], ebp
mov byte [esp + 0x13a], cl
mov ecx, 0x4c
lea edx, [esp + 0x1e4]
lea eax, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
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 + 0x78]
test ecx, ecx
mov dword [esp + 0x20], edx
jle 0x593ee7
lea eax, [ebx + 0xcedac1]
mov dword [esp + 0x14], eax
xor ecx, ecx
lea esi, [esp + 0x318]
mov dword [esp + 0x392], ecx
lea edi, [esp + 0x44c]
mov dword [esp + 0x396], ecx
mov dword [esp + 0x448], ebp
mov dword [esp + 0x39a], ecx
lea edx, [esp + 0x448]
mov byte [esp + 0x39e], cl
mov ecx, 0x4c
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x2c]
push edx
push eax
mov ecx, 0xced988
mov dword [esp + 0x20], 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 + 0x20], edx
jle 0x593d5f
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x580]
xor ecx, ecx
mov cx, word [eax + 0x18]
mov dword [ebx - 0x45], ecx
mov dx, word [eax + 0x18]
mov word [ebx - 2], dx
mov ax, word [eax + 0x16]
mov word [ebx - 4], ax
mov ax, word [ebx]
xor ecx, ecx
mov cl, ah
cmp cx, 1
jb 0x593ce5
add ecx, 0xff
and eax, 0xff
shl ecx, 8
or ecx, eax
mov word [ebx], cx
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x318]
inc ecx
lea edi, [esp + 0x44c]
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x392], ecx
mov dword [esp + 0x448], ebp
mov dword [esp + 0x396], ecx
lea edx, [esp + 0x448]
mov dword [esp + 0x39a], ecx
lea eax, [esp + 0x2c]
mov byte [esp + 0x39e], cl
mov ecx, 0x4c
rep movsd dword es:[edi], dword [esi]
push edx
push eax
mov ecx, 0xced988
add ebx, 0x88
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x74]
cmp ecx, edx
jl 0x593ca5
mov edi, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x12e], edx
mov ebx, dword [esp + 0x10]
add edi, 0x550
mov dword [esp + 0x132], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x136], edx
mov ecx, 0x4c
lea esi, [esp + 0xb4]
lea edi, [esp + 0x1e8]
mov byte [esp + 0x13a], dl
mov dword [esp + 0x1e4], ebp
lea eax, [esp + 0x1e4]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x24]
push eax
inc ebx
push ecx
mov ecx, 0xced988
mov dword [esp + 0x18], ebx
call fcn.00474ae0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x78]
cmp ebx, ecx
jl 0x593c32
jmp 0x593ee7
and ecx, 0xffff
shr ecx, 8
mov ebp, ecx
js 0x593eee
cmp ebp, 7
jge 0x593eee
lea edx, [ebp*8]
xor ecx, ecx
sub edx, ebp
mov dword [esp + 0x12e], ecx
mov dword [esp + 0x132], ecx
xor ebx, ebx
mov bx, word [edi + 0x16]
lea ebp, [ebp + edx*4]
shl ebp, 2
mov dword [esp + 0x136], ecx
xor eax, eax
mov edx, dword [ebp + 0xcf2a18]
mov ax, word [ebp + 0xcf2a5d]
mov byte [esp + 0x13a], cl
mov ecx, 0x4c
lea esi, [esp + 0xb4]
lea edi, [esp + 0x1e8]
mov dword [esp + 0x1e4], edx
sub ebx, eax
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1e4]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, 0xced988
call fcn.00474ae0
mov edx, eax
push ebx
mov eax, dword [edx]
add eax, 0x10
mov ecx, dword [edx + 4]
push eax
lea edx, [esp + 0x3c]
push 0x674608
push edx
mov dword [esp + 0x30], ecx
call fcn.006133d6
mov eax, dword [esp + 0x590]
xor ecx, ecx
add esp, 0x10
mov cx, word [eax + 0x18]
mov dword [ebp + 0xcf2a2c], ecx
mov dx, word [eax + 0x18]
mov word [ebp + 0xcf2a5f], dx
mov ax, word [eax + 0x16]
mov word [ebp + 0xcf2a5d], ax
mov ax, word [ebp + 0xcf2a61]
xor ecx, ecx
mov cl, ah
cmp cx, 1
jb 0x593ee7
add ecx, 0xff
and eax, 0xff
shl ecx, 8
or ecx, eax
mov word [ebp + 0xcf2a61], cx
mov edi, dword [esp + 0x580]
mov eax, dword [0xa4f274]
mov ecx, dword [edi + 0x1c]
test eax, eax
mov dword [0x6d68d0], ecx
jne 0x593f0f
lea edx, [esp + 0x34]
push 0
push edx
call fcn.00586da0
add esp, 8
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
push 0
dec ecx
push 0
lea eax, [esp + 0x40]
push ecx
push eax
call fcn.004cbc90
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x56c
ret
mov eax, dword [0xa4f274]
lea edx, [esp + 0x34]
test eax, eax
je 0x593f50
mov edi, 0x6745ec
jmp 0x593fa4
mov edi, 0x6745d0
jmp 0x593fa4
mov eax, dword [0xa4f274]
lea edx, [esp + 0x34]
test eax, eax
je 0x593f6b
mov edi, 0x6745ac
jmp 0x593fa4
mov edi, 0x67458c
jmp 0x593fa4
mov eax, dword [0xa4f274]
lea edx, [esp + 0x34]
test eax, eax
je 0x593f86
mov edi, 0x67456c
jmp 0x593fa4
mov edi, 0x67454c
jmp 0x593fa4
mov eax, dword [0xa4f274]
lea edx, [esp + 0x34]
test eax, eax
mov edi, 0x674538
jne 0x593fa4
mov edi, 0x674524
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
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
push ecx
call fcn.004fe420
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x56c
ret