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

Disassembly:
push edi
push esi
push ebx
sub esp, 0x60
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov edx, dword [ebx + 0x34]
cmp edx, 1
je 0x430520
cmp edx, 2
je 0x430520
cmp edx, 5
je 0x430520
add esp, 0x60
pop ebx
pop esi
pop edi
ret
lea edx, [ebx + 4]
mov dword [esp], edx
mov edx, dword [ebx + 0x37b8]
imul edx, eax
mov dword [esp + 4], edx
mov edx, dword [ebx + 0x37bc]
imul eax, edx
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], edi
lea edi, [esi + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ecx
call fcn.0042d3aa
test eax, eax
jne 0x4306f5
mov ecx, dword [esi + 0x2c]
mov edi, dword [ebx + 0x30]
cmp edi, 3
je 0x43074a
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
cmp esi, edx
jge 0x4306f5
mov eax, dword [esp + 0x38]
imul eax, edi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], ebp
mov ecx, edi
imul ecx, dword [esp + 0x30]
cmp ecx, eax
jge 0x4306e8
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
lea esi, [esi]
lea edi, [edi]
mov ebp, dword [esp + 0x58]
imul ebp, dword [ebx + 0x3c]
add ebp, dword [esp + 0x44]
movzx edx, byte [ebp + ecx]
movzx esi, byte [ebp + ecx + 1]
movzx edi, byte [ebp + ecx + 2]
imul eax, edi, 0x167
add eax, 0xffff4d0b
sar eax, 8
add eax, edx
cmp eax, 0xff
jle 0x43061a
mov eax, 0xff
jmp 0x430620
test eax, eax
jge 0x430620
xor eax, eax
movsx eax, ax
imul edi, edi, 0xffffff49
mov dword [esp + 0x48], eax
imul eax, esi, 0xffffffa8
lea eax, [eax + edi + 0x87f6]
sar eax, 8
add eax, edx
cmp eax, 0xff
jle 0x43064a
mov eax, 0xff
jmp 0x430650
test eax, eax
jge 0x430650
xor eax, eax
movsx eax, ax
imul esi, esi, 0x1c6
add esi, 0xffff1daf
mov dword [esp + 0x4c], eax
sar esi, 8
add edx, esi
cmp edx, 0xff
jle 0x43067a
mov edx, 0xff
jmp 0x430680
test edx, edx
jge 0x430680
xor edx, edx
movsx eax, dx
mov edx, dword [ebx + 0x58]
cmp edx, 6
je 0x4306fc
cmp edx, 3
jne 0x4306cc
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov byte [ebp + ecx], dl
mov edi, dword [ebx + 0x3c]
mov ebp, dword [esp + 0x58]
imul edi, ebp
add edi, esi
mov edx, dword [esp + 0x4c]
mov byte [ecx + edi + 1], dl
mov edi, dword [ebx + 0x3c]
imul edi, ebp
add edi, esi
mov byte [ecx + edi + 2], al
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x54], eax
imul eax, dword [esp + 0x38]
mov dword [esp + 0x50], eax
add ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
cmp ecx, eax
jl 0x4305da
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, edx
jl 0x4305b5
mov ebp, dword [esp + 0x40]
add esp, 0x60
pop ebx
pop esi
pop edi
ret
mov edx, dword [esp + 0x48]
neg dl
add dl, 0xff
mov esi, dword [esp + 0x44]
mov byte [ebp + ecx], dl
mov edx, dword [esp + 0x4c]
neg dl
add dl, 0xff
mov edi, dword [ebx + 0x3c]
mov ebp, dword [esp + 0x58]
imul edi, ebp
add edi, esi
mov byte [ecx + edi + 1], dl
neg al
add al, 0xff
mov edx, dword [ebx + 0x3c]
imul edx, ebp
add edx, esi
mov byte [ecx + edx + 2], al
mov edi, dword [ebx + 0x30]
mov dword [esp + 0x54], edi
imul edi, dword [esp + 0x38]
mov dword [esp + 0x50], edi
jmp 0x4306cc
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
cmp esi, edx
jge 0x4306f5
mov eax, dword [esp + 0x38]
lea eax, [eax + eax*2]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], ebp
mov ecx, dword [esp + 0x30]
lea ebp, [ecx + ecx*2]
cmp ebp, eax
jge 0x43086c
mov dword [esp + 0x48], esi
mov esi, esi
mov esi, dword [esp + 0x48]
imul esi, dword [ebx + 0x3c]
add esi, dword [esp + 0x44]
movzx edx, byte [esi + ebp]
movzx ecx, byte [esi + ebp + 1]
movzx edi, byte [esi + ebp + 2]
imul eax, edi, 0x167
add eax, 0xffff4d0b
sar eax, 8
add eax, edx
cmp eax, 0xff
jle 0x4307ba
mov eax, 0xff
jmp 0x4307c0
test eax, eax
jge 0x4307c0
xor eax, eax
movsx eax, ax
imul edi, edi, 0xffffff49
mov dword [esp + 0x4c], eax
imul eax, ecx, 0xffffffa8
lea eax, [eax + edi + 0x87f6]
sar eax, 8
add eax, edx
cmp eax, 0xff
jle 0x4307ea
mov eax, 0xff
jmp 0x4307f0
test eax, eax
jge 0x4307f0
xor eax, eax
movsx eax, ax
imul ecx, ecx, 0x1c6
add ecx, 0xffff1daf
sar ecx, 8
add edx, ecx
cmp edx, 0xff
jle 0x43081a
mov edx, 0xff
jmp 0x430820
test edx, edx
jge 0x430820
xor edx, edx
movsx edx, dx
mov ecx, dword [ebx + 0x34]
cmp ecx, 2
je 0x43087e
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
mov byte [esi + ebp], cl
mov ecx, dword [ebx + 0x3c]
mov esi, dword [esp + 0x48]
imul ecx, esi
add ecx, edi
mov byte [ebp + ecx + 1], al
mov eax, dword [ebx + 0x3c]
imul eax, esi
add eax, edi
mov byte [ebp + eax + 2], dl
add ebp, 3
mov eax, dword [esp + 0x38]
lea eax, [eax + eax*2]
cmp ebp, eax
jl 0x43077a
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, edx
jl 0x430765
mov ebp, dword [esp + 0x40]
jmp 0x4306f5
mov byte [esi + ebp], dl
mov esi, dword [ebx + 0x3c]
mov edi, dword [esp + 0x48]
imul esi, edi
mov edx, dword [esp + 0x44]
add esi, edx
mov byte [ebp + esi + 1], al
mov ecx, dword [ebx + 0x3c]
imul ecx, edi
add ecx, edx
mov eax, dword [esp + 0x4c]
mov byte [ebp + ecx + 2], al
jmp 0x430852