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

Disassembly:
sub esp, 0x6c
xor ecx, ecx
cmp eax, 3
sete cl
xor edx, edx
cmp eax, 4
sete dl
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x48]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x78]
cmp ecx, dword [edx + 0x18]
je 0x430198
pop esi
mov eax, 6
pop ebp
add esp, 0x6c
ret
cmp eax, dword [esp + 0x84]
je 0x4301ac
pop esi
mov eax, 0x13
pop ebp
add esp, 0x6c
ret
mov eax, dword [esp + 0x80]
test eax, eax
lea esi, [ebp + 0x6c]
je 0x4301ca
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
push esi
call fcn.004271e0
add esp, 0xc
push ebx
push edi
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.00427150
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x48]
add eax, 0x3f
and eax, 0xffffffc0
mov dword [esp + 0x4c], eax
and edx, 0xffffffc0
sub eax, edx
sar eax, 6
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x88]
mov eax, dword [eax + 8]
add ecx, 0x3f
and ecx, 0xffffffc0
and ebx, 0xffffffc0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
mov esi, ecx
sub esi, ebx
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x9c]
sar esi, 6
add esp, 8
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ecx
test byte [eax + 4], 1
lea edi, [ebp + 0x4c]
mov dword [esp + 0x18], esi
je 0x430278
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.00427d50
mov dword [edi + 0xc], 0
mov ebp, dword [ebp + 0x9c]
mov eax, dword [ebp + 4]
add esp, 8
and eax, 0xfffffffe
mov dword [ebp + 4], eax
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
test eax, eax
mov ebp, dword [esp + 0x10]
je 0x430293
mov eax, ebp
lea ebp, [eax + eax*2]
mov dword [esp + 0x10], ebp
add ebp, 3
and ebp, 0xfffffffc
mov eax, dword [esp + 0x24]
test eax, eax
je 0x43029e
lea esi, [esi + esi*2]
mov dword [esp + 0x2c], ebx
neg ebx
mov eax, edx
push ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x34], edx
sar eax, 6
neg edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
push edx
sar ecx, 6
add ebx, 0x6c
push ebx
mov dword [esp + 0x44], ecx
mov byte [edi + 0x12], 2
mov word [edi + 0x10], 0x100
mov dword [edi + 4], eax
mov dword [edi], esi
mov dword [edi + 8], ebp
call fcn.004271e0
mov eax, dword [esp + 0x28]
mov edx, ebp
imul edx, esi
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
call fcn.00428b80
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x2c]
add esp, 0x18
test eax, eax
jne 0x43044b
mov ecx, dword [esp + 0x84]
mov eax, dword [ecx + 0x9c]
mov edx, dword [eax + 4]
mov ecx, 1
or edx, ecx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x4c]
mov dword [esp + 0x54], ecx
mov ecx, dword [eax + 0x3c]
push edx
push ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], ebx
call dword [eax + 0x40]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x43039d
test ecx, ecx
mov ebx, dword [edi + 0xc]
jbe 0x43039d
dec ebx
mov dword [esp + 0x80], ecx
mov edx, dword [esp + 0x28]
test edx, edx
jbe 0x43038a
mov eax, dword [esp + 0x10]
lea eax, [eax + ebx - 1]
movzx ecx, byte [ebx + edx]
mov byte [eax - 1], cl
mov byte [eax], cl
mov byte [eax + 1], cl
sub eax, 3
dec edx
jne 0x430374
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x80]
add ebx, ebp
dec eax
mov dword [esp + 0x80], eax
jne 0x430364
mov eax, dword [esp + 0x24]
test eax, eax
je 0x430411
mov edi, dword [edi + 0xc]
sub esi, ecx
imul esi, ebp
add esi, edi
test ecx, ecx
mov edx, esi
mov eax, edi
jbe 0x430411
mov dword [esp + 0x80], ecx
mov edi, edi
mov ecx, ebp
mov ebx, ecx
shr ecx, 2
mov edi, eax
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, ebp
mov ecx, ebp
shr ecx, 2
mov edi, eax
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, ebp
mov ecx, ebp
shr ecx, 2
mov esi, edx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x80]
add eax, ebp
add edx, ebp
dec ecx
mov dword [esp + 0x80], ecx
jne 0x4303c0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x84]
push ecx
push edx
lea ebx, [esi + 0x6c]
push ebx
call fcn.004271e0
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x43044b
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esi + 0x48], 0x62697473
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], edx
test ebx, ebx
je 0x430472
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x430472
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
neg eax
push eax
neg ecx
push ecx
push ebx
call fcn.004271e0
mov eax, dword [esp + 0x20]
add esp, 0xc
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x6c
ret