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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x2c
mov dword [ebp - 0x1c], edx
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x40]
mov edi, dword [esi + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], edi
mov ecx, dword [ebp - 0x20]
cmp eax, ecx
jae 0x459fae
cmp edx, 8
ja case.default.0x4599f0
jmp dword [edx*4 + 0x4b7188]
mov edi, dword [ebp - 0x1c]
lea esi, [eax + 1]
mov ecx, dword [edi]
mov dword [edi + 4], esi
movzx eax, byte [ecx + eax]
test eax, eax
je 0x459fbc
cmp eax, 0xdf
ja 0x459a1a
cmp eax, 1
jne 0x459a51
cmp dword [ebx + 0x3c], 0
mov word [ebx + 0x50], 0x100
jne 0x459a41
mov edi, dword [ebp - 0x1c]
mov esi, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
mov edi, dword [edi + 0x14]
add ecx, esi
mov dword [ebx + 0x18], ecx
mov ecx, edi
sub ecx, esi
mov dword [ebp - 0x20], edi
mov dword [ebx + 0x2c], ecx
xor ecx, ecx
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x28], ecx
mov dword [ebx + 0x24], ecx
jmp 0x459a61
cmp byte [ebx + 0x50], 0
je 0x459a61
mov eax, 7
jmp 0x459fc1
cmp eax, 0x7f
jbe 0x459ae2
mov ecx, eax
mov dword [ebx + 0x40], 1
shl ecx, 0x10
and ecx, 0x1f0000
mov dword [ebx + 0x48], ecx
cmp eax, 0xbf
jbe 0x459a92
mov byte [ebx + 0x51], 0
mov dword [ebx + 0x44], 5
jmp 0x4599ce
cmp byte [ebx + 0x51], 0
jne 0x459a57
mov dword [ebx + 0x44], 6
cmp eax, 0x9f
jbe 0x4599ce
xor eax, eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], eax
mov word [ebx + edx*2 + 0x78], 0x400
inc edx
cmp edx, 0x3736
jne 0x459abb
xor eax, eax
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], eax
mov dword [ebx + 8], 5
jmp 0x4599ce
cmp eax, 2
ja 0x459a57
mov dword [ebx + 0x40], 3
mov dword [ebx + 0x44], 8
jmp 0x4599ce
mov edi, dword [ebp - 0x1c]
lea ecx, [eax + 1]
mov edx, dword [edi]
mov dword [edi + 4], ecx
movzx eax, byte [edx + eax]
mov dword [ebx + 0x40], 2
shl eax, 8
add dword [ebx + 0x48], eax
jmp 0x4599ce
mov edi, dword [ebp - 0x1c]
lea ecx, [eax + 1]
mov edx, dword [edi]
mov dword [edi + 4], ecx
movzx edx, byte [edx + eax]
mov eax, dword [ebx + 0x48]
mov dword [ebx + 0x40], 3
lea eax, [edx + eax + 1]
mov dword [ebx + 0x48], eax
jmp 0x4599ce
mov edi, dword [ebp - 0x1c]
lea ecx, [eax + 1]
mov edx, dword [edi]
mov dword [edi + 4], ecx
movzx eax, byte [edx + eax]
mov dword [ebx + 0x40], 4
shl eax, 8
mov dword [ebx + 0x4c], eax
jmp 0x4599ce
mov edi, dword [ebp - 0x1c]
lea ecx, [eax + 1]
mov edx, dword [edi]
mov dword [edi + 4], ecx
movzx edx, byte [edx + eax]
mov eax, dword [ebx + 0x4c]
lea eax, [edx + eax + 1]
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x40], eax
jmp 0x4599ce
mov edi, dword [ebp - 0x1c]
lea ecx, [eax + 1]
mov edx, dword [edi]
mov dword [edi + 4], ecx
mov al, byte [edx + eax]
cmp al, 0xe0
ja 0x459a57
xor ecx, ecx
cmp al, 0x2c
jbe 0x459bab
sub eax, 0x2d
inc ecx
jmp 0x459ba1
mov edx, 1
shl edx, cl
xor ecx, ecx
dec edx
mov dword [ebx + 0x74], edx
cmp al, 8
jbe 0x459bc2
sub eax, 9
inc ecx
jmp 0x459bb8
movzx eax, al
mov dword [ebx + 0x70], ecx
mov dword [ebx + 0x6c], eax
add eax, ecx
cmp eax, 4
ja 0x459a57
mov eax, 1
shl eax, cl
dec eax
mov dword [ebx + 0x70], eax
xor eax, eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov word [ebx + eax*2 + 0x78], 0x400
inc eax
cmp eax, 0x3736
jne 0x459bf4
xor eax, eax
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], eax
mov dword [ebx + 8], 5
mov dword [ebx + 0x40], 6
mov edi, dword [ebx + 0x4c]
cmp edi, 4
jbe 0x459a57
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebx + 8]
mov edx, dword [esi + 4]
test eax, eax
je 0x459c70
cmp dword [ebp - 0x20], edx
jne 0x459c41
xor eax, eax
jmp 0x459fc1
mov ecx, dword [ebx + 4]
mov esi, dword [ebp - 0x1c]
dec eax
mov esi, dword [esi]
shl ecx, 8
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], esi
lea esi, [edx + 1]
mov dword [ecx + 4], esi
mov esi, dword [ebp - 0x28]
movzx edx, byte [esi + edx]
mov esi, dword [ebp - 0x24]
mov dword [ebx + 8], eax
add edx, esi
mov dword [ebx + 4], edx
jmp 0x459c28
sub edi, 5
mov dword [ebx + 0x40], 7
mov dword [ebx + 0x4c], edi
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x20]
mov eax, dword [eax + 0x14]
sub eax, dword [edi + 0x10]
cmp eax, edx
cmova eax, edx
mov edx, dword [ebx + 0x2c]
mov esi, edx
sub esi, ecx
cmp eax, esi
jae 0x459ca2
lea edx, [eax + ecx]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x6ee4]
mov dword [ebx + 0x28], edx
mov esi, dword [eax + 4]
mov eax, dword [ebx + 0x4c]
test ecx, ecx
jne 0x459cc0
test eax, eax
jne 0x459da3
mov edx, 0x2a
sub eax, ecx
mov edi, dword [ebp - 0x1c]
sub edx, ecx
cmp edx, eax
cmovbe eax, edx
mov edx, dword [ebp - 0x20]
sub edx, esi
cmp eax, edx
cmovbe edx, eax
add esi, dword [edi]
mov dword [ebp - 0x20], edx
lea edx, [ebx + 0x6ee8]
lea eax, [edx + ecx]
mov ecx, dword [ebp - 0x20]
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x20]
add esi, dword [ebx + 0x6ee4]
cmp esi, dword [ebx + 0x4c]
jne 0x459d18
mov ecx, 0x3f
xor eax, eax
sub ecx, esi
add esi, edx
mov edi, esi
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x20]
add eax, dword [ebx + 0x6ee4]
jmp 0x459d34
lea eax, [esi - 0x15]
cmp esi, 0x14
ja 0x459d34
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov dword [ebx + 0x6ee4], esi
add dword [eax + 4], edi
jmp 0x459e42
xor edi, edi
mov dword [ebx + 0x14], eax
mov eax, ebx
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edi
mov dword [ebp - 0x24], edx
call fcn.0045909d
test al, al
je 0x459a57
mov ecx, dword [ebx + 0x6ee4]
mov esi, dword [ebp - 0x20]
mov eax, dword [ebx + 0x10]
add esi, ecx
cmp esi, eax
jb 0x459a57
sub dword [ebx + 0x4c], eax
cmp eax, ecx
mov edx, dword [ebp - 0x24]
jae 0x459d90
sub ecx, eax
add eax, edx
mov dword [ebx + 0x6ee4], ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_memmove
jmp 0x459e42
mov edi, dword [ebp - 0x1c]
xor esi, esi
add eax, dword [edi + 4]
sub eax, ecx
mov dword [edi + 4], eax
mov dword [ebx + 0x6ee4], esi
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov edx, dword [edi + 4]
mov edi, eax
sub edi, edx
cmp edi, 0x14
jbe 0x459e0a
mov esi, dword [ebp - 0x1c]
sub eax, 0x15
mov ecx, dword [esi]
mov dword [ebx + 0x10], edx
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebx + 0x4c]
lea esi, [ecx + 0x15]
cmp edi, esi
jb 0x459dd3
lea eax, [edx + ecx]
mov dword [ebx + 0x14], eax
mov eax, ebx
call fcn.0045909d
test al, al
je 0x459a57
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x4c]
mov eax, dword [eax + 4]
mov esi, edx
sub esi, eax
cmp ecx, esi
jb 0x459a57
sub eax, edx
add eax, ecx
mov dword [ebx + 0x4c], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
sub eax, esi
cmp eax, 0x14
ja 0x459e42
mov edx, dword [ebx + 0x4c]
mov edi, dword [ebp - 0x1c]
cmp eax, edx
cmova eax, edx
lea edx, [ebx + 0x6ee8]
add esi, dword [edi]
mov edi, edx
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x1c]
mov dword [ebx + 0x6ee4], eax
add dword [edi + 4], eax
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0x20], eax
sub eax, edx
cmp dword [ebx + 0x3c], 0
mov dword [ebp - 0x24], eax
je 0x459e7b
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 0x2c]
jne 0x459e63
xor ecx, ecx
mov dword [ebx + 0x20], ecx
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax + 0x10]
add eax, dword [edi + 0xc]
add esi, edx
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp - 0x1c]
add edx, dword [ebx + 0x48]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x24]
add eax, dword [esi + 0x10]
mov dword [esi + 0x10], eax
mov esi, dword [ebp - 0x20]
sub edx, esi
mov dword [ebx + 0x48], edx
jne 0x459eca
cmp dword [ebx + 0x4c], 0
jne 0x459a57
cmp dword [ebx + 0x68], 0
jne 0x459a57
cmp dword [ebx + 4], 0
jne 0x459a57
mov dword [ebx], 0xffffffff
mov dword [ebx + 8], 5
jmp 0x459fa4
mov edi, dword [ebp - 0x1c]
cmp dword [edi + 0x14], eax
je 0x459c3a
mov esi, dword [edi + 8]
cmp dword [edi + 4], esi
jne 0x4599ce
mov eax, dword [ebx + 0x4c]
cmp dword [ebx + 0x6ee4], eax
jae 0x4599ce
jmp 0x459c3a
cmp eax, edi
jae 0x459c3a
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
cmp esi, eax
jae 0x459c3a
mov edx, dword [ebx + 0x2c]
sub edx, dword [ebx + 0x20]
cmp edx, ecx
cmova edx, ecx
sub eax, esi
mov esi, dword [ebp - 0x20]
cmp edx, eax
cmovbe eax, edx
sub edi, esi
mov edx, dword [ebx + 0x18]
cmp eax, edi
cmova eax, edi
mov edi, dword [ebp - 0x1c]
add edx, dword [ebx + 0x20]
sub ecx, eax
mov dword [ebx + 0x4c], ecx
mov ecx, eax
mov esi, dword [edi + 4]
add esi, dword [edi]
mov edi, edx
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x20]
add edx, eax
mov dword [ebx + 0x20], edx
cmp dword [ebx + 0x24], edx
jae 0x459f54
mov dword [ebx + 0x24], edx
cmp dword [ebx + 0x3c], 0
jne 0x459f82
mov edx, dword [ebx + 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [ebx + 0x1c], edx
add dword [esi + 0x10], eax
add dword [esi + 4], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x4c]
mov edi, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
test ecx, ecx
jne 0x459ef6
jmp 0x459fa4
cmp edx, dword [ebx + 0x2c]
jne 0x459f89
xor edx, edx
mov esi, dword [ebp - 0x1c]
mov dword [ebx + 0x20], edx
mov ecx, eax
mov edx, dword [esi + 0x10]
mov edi, esi
add edx, dword [esi + 0xc]
mov esi, dword [esi + 4]
add esi, dword [edi]
mov edi, edx
rep movsb byte es:[edi], byte [esi]
jmp 0x459f5a
xor eax, eax
mov dword [ebx + 0x40], eax
jmp 0x4599ce
cmp edx, 7
je case.0x4599f0.7
jmp 0x459c3a
mov eax, 1
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret