Function at 0x437ff0
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 0x438026
cmp edx, 2
je 0x438026
cmp edx, 5
je 0x438026
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.00434eb0
test eax, eax
jne 0x4381fb
mov ecx, dword [esi + 0x2c]
mov edi, dword [ebx + 0x30]
cmp edi, 3
je 0x438250
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
cmp esi, edx
jge 0x4381fb
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 0x4381ee
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 0x438120
mov eax, 0xff
jmp 0x438126
test eax, eax
jge 0x438126
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 0x438150
mov eax, 0xff
jmp 0x438156
test eax, eax
jge 0x438156
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 0x438180
mov edx, 0xff
jmp 0x438186
test edx, edx
jge 0x438186
xor edx, edx
movsx eax, dx
mov edx, dword [ebx + 0x58]
cmp edx, 6
je 0x438202
cmp edx, 3
jne 0x4381d2
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 0x4380e0
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, edx
jl 0x4380bb
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 0x4381d2
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
cmp esi, edx
jge 0x4381fb
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 0x438372
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 0x4382c0
mov eax, 0xff
jmp 0x4382c6
test eax, eax
jge 0x4382c6
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 0x4382f0
mov eax, 0xff
jmp 0x4382f6
test eax, eax
jge 0x4382f6
xor eax, eax
movsx eax, ax
imul ecx, ecx, 0x1c6
add ecx, 0xffff1daf
sar ecx, 8
add edx, ecx
cmp edx, 0xff
jle 0x438320
mov edx, 0xff
jmp 0x438326
test edx, edx
jge 0x438326
xor edx, edx
movsx edx, dx
mov ecx, dword [ebx + 0x34]
cmp ecx, 2
je 0x438384
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 0x438280
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, edx
jl 0x43826b
mov ebp, dword [esp + 0x40]
jmp 0x4381fb
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 0x438358