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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
nop
mov eax, dword [ebx + 4]
lea ecx, [esi + 0x40]
cmp eax, dword [ebx + 8]
jb 0x459054
cmp dword [ecx], 7
jne 0x459418
mov edx, dword [ecx]
cmp edx, 8
ja case.default.0x45905b
jmp dword [edx*4 + 0x459514]
mov edi, dword [ebx + 4]
mov eax, dword [ebx]
movzx ecx, byte [edi + eax]
lea eax, [edi + 1]
mov dword [ebx + 4], eax
test ecx, ecx
je 0x459507
cmp ecx, 0xe0
jae 0x459098
cmp ecx, 1
je 0x459098
cmp byte [esi + 0x50], 0
je 0x4590d2
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
mov word [esi + 0x50], 0x100
cmp dword [esi + 0x3c], 0
jne 0x4590b6
mov eax, dword [ebx + 0xc]
add eax, dword [ebx + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0x14]
sub eax, dword [ebx + 0x10]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
cmp ecx, 0x80
jb 0x459170
mov eax, ecx
mov dword [esi + 0x40], 1
and eax, 0x1f
shl eax, 0x10
mov dword [esi + 0x48], eax
cmp ecx, 0xc0
jb 0x459108
mov byte [esi + 0x51], 0
mov dword [esi + 0x44], 5
jmp case.default.0x45905b
cmp byte [esi + 0x51], 0
jne 0x45908c
mov dword [esi + 0x44], 6
cmp ecx, 0xa0
jb case.default.0x45905b
mov dword [esi + 0x64], 0
lea edi, [esi + 0x78]
mov dword [esi + 0x54], 0
mov ecx, 0x1b9b
mov dword [esi + 0x58], 0
mov eax, 0x4000400
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
rep stosd dword es:[edi], eax
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0
mov dword [esi + 8], 5
jmp case.default.0x45905b
cmp ecx, 2
ja 0x45908c
mov dword [esi + 0x40], 3
mov dword [esi + 0x44], 8
jmp case.default.0x45905b
mov edi, dword [ebx + 4]
mov eax, dword [ebx]
movzx eax, byte [edi + eax]
shl eax, 8
add dword [esi + 0x48], eax
inc dword [ebx + 4]
mov dword [ecx], 2
jmp case.default.0x45905b
mov edi, dword [ebx + 4]
mov eax, dword [ebx]
movzx eax, byte [edi + eax]
inc eax
add dword [esi + 0x48], eax
inc dword [ebx + 4]
mov dword [ecx], 3
jmp case.default.0x45905b
mov edi, dword [ebx + 4]
mov eax, dword [ebx]
movzx eax, byte [edi + eax]
shl eax, 8
mov dword [esi + 0x4c], eax
inc dword [ebx + 4]
mov dword [ecx], 4
jmp case.default.0x45905b
mov edi, dword [ebx + 4]
mov eax, dword [ebx]
movzx eax, byte [edi + eax]
inc eax
add dword [esi + 0x4c], eax
inc dword [ebx + 4]
mov eax, dword [esi + 0x44]
mov dword [ecx], eax
jmp case.default.0x45905b
mov edi, dword [ebx + 4]
mov eax, dword [ebx]
mov dl, byte [edi + eax]
lea eax, [edi + 1]
mov byte [ebp + 0xf], dl
mov dword [ebx + 4], eax
cmp dl, 0xe0
ja 0x45908c
xor edi, edi
mov dword [esi + 0x74], 0
mov dword [ebp - 4], ecx
cmp dl, 0x2d
jb 0x459255
movzx ecx, dl
mov eax, 0x6c16c16d
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
mov dl, byte [ebp + 0xf]
shr ecx, 5
movzx eax, cl
nop
add dl, 0xd3
inc edi
sub eax, 1
jne 0x459240
lea eax, [esi + 0x40]
mov byte [ebp + 0xf], dl
mov dword [esi + 0x74], edi
mov dword [ebp - 4], eax
mov ecx, edi
mov dword [esi + 0x70], 0
mov eax, 1
xor edi, edi
shl eax, cl
dec eax
mov dword [esi + 0x74], eax
cmp dl, 9
jb 0x459294
movzx ecx, dl
mov eax, 0x38e38e39
mul ecx
shr edx, 1
movzx eax, dl
mov dl, byte [ebp + 0xf]
add dl, 0xf7
inc edi
sub eax, 1
jne 0x459282
lea eax, [esi + 0x40]
mov dword [esi + 0x70], edi
mov dword [ebp - 4], eax
movzx eax, dl
mov dword [esi + 0x6c], eax
add eax, edi
cmp eax, 4
ja 0x45908c
mov ecx, edi
mov dword [esi + 0x64], 0
mov eax, 1
mov dword [esi + 0x54], 0
shl eax, cl
lea edi, [esi + 0x78]
dec eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x70], eax
mov ecx, 0x1b9b
mov dword [esi + 0x5c], 0
mov eax, 0x4000400
mov dword [esi + 0x60], 0
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 4]
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0
mov dword [esi + 8], 5
mov dword [ecx], 6
cmp dword [esi + 0x4c], 5
jb 0x45908c
cmp dword [esi + 8], 0
jbe 0x45933a
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebx + 8]
je 0x459418
mov eax, dword [ebx]
movzx ecx, byte [ecx + eax]
mov eax, dword [esi + 4]
shl eax, 8
add ecx, eax
mov dword [esi + 4], ecx
inc dword [ebx + 4]
add dword [esi + 8], 0xffffffff
jne 0x459311
lea ecx, [esi + 0x40]
add dword [esi + 0x4c], 0xfffffffb
mov dword [ecx], 7
mov edi, dword [ebx + 0x14]
sub edi, dword [ebx + 0x10]
cmp edi, dword [esi + 0x48]
mov edx, dword [esi + 0x2c]
mov ecx, edx
cmovae edi, dword [esi + 0x48]
mov eax, dword [esi + 0x20]
sub ecx, eax
add eax, edi
cmp ecx, edi
push ebx
cmova edx, eax
push esi
mov dword [esi + 0x28], edx
call fcn.00457e20
add esp, 8
test al, al
je 0x45908c
mov eax, dword [esi + 0x20]
mov edi, eax
mov ecx, dword [esi + 0x1c]
sub edi, ecx
cmp dword [esi + 0x3c], 0
je 0x4593a9
cmp eax, dword [esi + 0x2c]
jne 0x459393
mov dword [esi + 0x20], 0
mov eax, dword [esi + 0x18]
add eax, ecx
push edi
push eax
mov eax, dword [ebx + 0xc]
add eax, dword [ebx + 0x10]
push eax
call fcn.00476fc0
add esp, 0xc
mov eax, dword [esi + 0x20]
mov dword [esi + 0x1c], eax
add dword [ebx + 0x10], edi
sub dword [esi + 0x48], edi
jne 0x4593f5
cmp dword [esi + 0x4c], 0
ja 0x45908c
cmp dword [esi + 0x68], 0
ja 0x45908c
cmp dword [esi + 4], 0
jne 0x45908c
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0
mov dword [esi + 8], 5
mov dword [esi + 0x40], 0
jmp case.default.0x45905b
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0x14]
je 0x459418
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
jne case.default.0x45905b
mov eax, dword [esi + 0x6ee4]
cmp eax, dword [esi + 0x4c]
jae case.default.0x45905b
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x4c]
test edx, edx
je 0x4594fb
mov edi, edx
mov dword [ebp - 8], edi
mov ecx, dword [ebx + 8]
cmp eax, ecx
jae 0x459418
lea eax, [ebx + 0x10]
mov edx, edi
mov edi, dword [eax]
mov dword [ebp + 0xc], eax
cmp edi, dword [ebx + 0x14]
jae 0x4594f3
sub ecx, dword [ebx + 4]
mov edx, dword [ebx + 0x14]
sub edx, edi
mov dword [ebp - 4], eax
mov edi, dword [esi + 0x2c]
cmp ecx, edx
mov eax, dword [ebp - 8]
cmovae ecx, edx
sub edi, dword [esi + 0x20]
cmp ecx, edi
cmovbe edi, ecx
cmp edi, eax
jbe 0x459475
lea ecx, [ebx + 0x10]
mov edi, eax
mov dword [ebp - 4], ecx
sub eax, edi
mov dword [esi + 0x4c], eax
mov eax, dword [ebx + 4]
add eax, dword [ebx]
push edi
push eax
mov eax, dword [esi + 0x18]
add eax, dword [esi + 0x20]
push eax
call fcn.00476fc0
mov eax, dword [esi + 0x20]
add esp, 0xc
add eax, edi
mov dword [esi + 0x20], eax
cmp dword [esi + 0x24], eax
jae 0x4594a8
mov ecx, dword [ebp - 4]
mov dword [esi + 0x24], eax
mov dword [ebp + 0xc], ecx
jmp 0x4594ab
mov ecx, dword [ebp + 0xc]
cmp dword [esi + 0x3c], 0
je 0x4594d2
cmp eax, dword [esi + 0x2c]
jne 0x4594bd
mov dword [esi + 0x20], 0
mov eax, dword [ebx + 4]
add eax, dword [ebx]
push edi
push eax
mov eax, dword [ebx + 0xc]
add eax, dword [ecx]
push eax
call fcn.00476fc0
add esp, 0xc
mov eax, dword [esi + 0x20]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0xc]
add dword [ebx + 4], edi
add dword [eax], edi
mov edx, dword [esi + 0x4c]
mov edi, edx
mov eax, dword [ebx + 4]
mov dword [ebp - 8], edx
test edx, edx
jne 0x459431
test edx, edx
jne 0x459418
mov dword [esi + 0x40], 0
jmp case.default.0x45905b
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret