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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebp, dword [esp + 0x88]
mov ebx, dword [esp + 0x80]
movzx eax, byte [ebp + 0x24]
mov ecx, eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x84]
mov dword [ebx], eax
mov eax, dword [ebp + 0x1c]
mov esi, eax
mov dword [esp + 0x50], eax
add eax, 0x1e
add esi, 0xf
cmovns eax, esi
sar eax, 4
mov dword [esp + 0x44], eax
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 0x20]
mov edx, eax
mov dword [esp + 0x54], eax
add eax, 0x1e
add edx, 0xf
cmovns eax, edx
sar eax, 4
cmp ecx, 8
mov dword [esp + 0x58], eax
mov dword [ebx + 0x34], eax
jg 0xa2f7e0
cmp ecx, 4
jg 0xa2f8a0
mov eax, 1
mov dword [ebx + 0x108], eax
mov eax, dword [ebp + 0x270]
test eax, eax
je 0xa2fb3d
mov edi, dword [ebp + 0x20c]
xor esi, esi
mov dword [ebx + 0x104], esi
test edi, edi
jne 0xa2fa82
mov eax, dword [ebp + 0xa8]
test eax, eax
jne 0xa2fa82
mov edx, dword [ebp + 0x98]
mov edi, dword [ebp + 0x70]
test edx, edx
mov dword [esp + 0x3c], edi
jne 0xa2fad3
test edi, edi
jle 0xa2faf5
mov edx, dword [ebp + 0xa0]
mov dword [esp + 0x40], edx
mov dword [ebx + 4], 0x4d
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x28]
mov dword [ebx + 0x10], 1
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
cmp eax, 9
mov dword [ebx + 8], eax
jne 0xa2f48e
mov dword [ebx + 0x18], 1
mov dword [ebx + 8], 0xb
mov edx, dword [ebp + 0x60]
mov byte [esp + 0x5e], 1
mov byte [esp + 0x5f], 1
cmp edx, 1
sete byte [esp + 0x4c]
mov esi, dword [ebp + 0x7c]
test esi, esi
jne 0xa2f880
mov ecx, dword [esp + 0x3c]
xor eax, eax
mov edi, dword [ebp + 0x5c]
test ecx, ecx
mov ecx, 1
setne al
mov dword [ebx + 0xfc], eax
cmp ecx, edi
cmovl ecx, edi
cmp ecx, eax
lea edi, [eax + 1]
cmovle ecx, edi
cmp dword [ebp + 0x58], ecx
mov eax, ecx
mov ecx, 0x10
cmovge eax, dword [ebp + 0x58]
cmp eax, 0x10
cmovg eax, ecx
cmp byte [esp + 0x4c], 0
mov dword [ebx + 0x100], eax
jne 0xa2fa20
xor ecx, ecx
cmp esi, 1
sete cl
mov edi, eax
sub edi, ecx
mov dword [ebx + 0x28], edi
test esi, esi
setne cl
movzx esi, cl
mov ecx, dword [ebp + 0x6c]
inc esi
imul eax, esi
mov dword [esp + 0x4c], esi
inc eax
test ecx, ecx
je 0xa2f537
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x3c]
cmp esi, edx
lea ecx, [esi - 1]
cmovle edx, ecx
add edx, edi
cmp eax, edx
cmovl eax, edx
cmp eax, 0xf
mov edx, 5
mov dword [ebx + 0x1c], 4
mov esi, 1
jle 0xa2f55e
lea esi, [esi]
mov ecx, edx
mov edi, esi
shl edi, cl
inc edx
cmp eax, edi
jge 0xa2f550
mov dword [ebx + 0x1c], ecx
mov esi, dword [esp + 0x3c]
test esi, esi
je 0xa2f960
mov eax, dword [esp + 0x3c]
mov edx, 1
mov ecx, dword [esp + 0x4c]
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 4
add eax, 2
imul eax, ecx
lea edi, [eax*4]
mov eax, 5
cmp edi, 0xf
jle 0xa2f5ae
lea esi, [esi]
mov ecx, eax
mov esi, edx
shl esi, cl
inc eax
cmp edi, esi
jge 0xa2f5a0
mov dword [ebx + 0x24], ecx
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x58], 1
mov dword [ebx + 0x2c], 0
test eax, eax
je 0xa2f9b0
mov eax, dword [esp + 0x58]
mov edx, 1
mov dword [ebx + 0x38], 0
mov dword [esp + 0x3c], edx
inc eax
and eax, 0xfffffffe
mov dword [ebx + 0x34], eax
mov esi, dword [ebp + 0x2ec]
shl eax, 4
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
mov edi, dword [ebp + 0x2e8]
mov dword [ebx + 0x40], 1
sub esi, ecx
mov ecx, dword [esp + 0x44]
mov dword [ebx + 0x3c], edx
mov edx, dword [ebp + 0x2e4]
mov dword [ebx + 0x50], edi
shl ecx, 4
add esi, ecx
mov ecx, dword [ebp + 0x2f0]
sub ecx, dword [esp + 0x54]
mov dword [ebx + 0x48], edx
or edx, edi
or edx, esi
add eax, ecx
movzx ecx, byte [esp + 0x3c]
mov dword [ebx + 0x4c], esi
mov dword [ebx + 0x5c], 0
shr eax, cl
or edx, eax
mov dword [ebx + 0x54], eax
setne al
movzx eax, al
mov dword [ebx + 0x44], eax
mov eax, dword [ebp + 0x38]
test eax, eax
jle 0xa2f665
mov edx, dword [ebp + 0x34]
test edx, edx
jle 0xa2f665
mov dword [ebx + 0x5c], 1
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], edx
mov ecx, dword [ebp + 0x3c]
xor eax, eax
lea edx, [ecx - 1]
cmp edx, 1
setbe al
mov dword [ebx + 0x68], eax
ja 0xa2f683
xor eax, eax
cmp ecx, 2
sete al
mov dword [ebx + 0x6c], eax
cmp dword [ebp + 0x40], 5
mov eax, 5
mov esi, dword [ebp + 0x44]
cmovbe eax, dword [ebp + 0x40]
mov dword [ebx + 0x70], 0
cmp esi, 1
mov dword [esp + 0x3c], eax
mov dword [ebx + 0x74], eax
jbe 0xa2f6b1
cmp dword [esp + 0x48], 0xa
setg al
movzx esi, al
mov edx, dword [ebp + 0x48]
mov ecx, 2
mov eax, dword [ebp + 0x4c]
mov edi, dword [ebp + 0x50]
mov dword [ebx + 0x78], esi
cmp edx, 0xd
cmovae edx, ecx
cmp eax, 0x12
cmovae eax, ecx
cmp edi, 0xb
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], edx
mov dword [ebx + 0x84], eax
ja 0xa2f9d1
cmp edi, 2
setne cl
cmp edx, 2
setne dl
cmp eax, 2
setne al
or dl, al
mov dword [ebx + 0x88], edi
jne 0xa2f8d9
test cl, cl
jne 0xa2f8d9
cmp dword [esp + 0x3c], 5
jne 0xa2f720
and esi, 1
je 0xa2f727
nop
mov dword [ebx + 0x70], 1
mov eax, dword [ebp + 0x54]
lea edx, [eax - 1]
cmp edx, 4
ja 0xa2f73d
cmp byte [esp + 0x5e], 0
jne 0xa2f9f0
xor eax, eax
mov dword [ebx + 0x8c], eax
mov edx, dword [ebp + 0x318]
test edx, edx
je 0xa2f950
mov eax, dword [ebp + 0x31c]
test eax, eax
je 0xa2f950
mov esi, dword [ebp + 0x308]
add eax, eax
mov ecx, 1
mov dword [ebx + 0xa0], eax
xor eax, eax
mov dword [ebx + 0x98], ecx
mov dword [ebx + 0x9c], edx
test esi, esi
sete al
mov dword [ebx + 0xa4], eax
mov edx, dword [ebp + 0x30]
xor eax, eax
mov dword [ebx + 0xac], eax
xor eax, eax
mov ecx, dword [ebx + 0x18]
test edx, edx
setne al
test ecx, ecx
mov dword [ebx + 0xa8], eax
mov eax, dword [ebp + 0x324]
mov dword [ebx + 0xe0], eax
je 0xa2f8e5
cmp byte [esp + 0x5f], 0
jne 0xa2f8e5
xor ebp, ebp
mov dword [ebx + 0xe4], ebp
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp + 0x270]
mov ecx, 3
mov dword [ebx + 0x108], ecx
test esi, esi
jne 0xa2fa70
mov eax, dword [ebp + 0x274]
mov byte [esp + 0x5e], 0
test eax, eax
jne 0xa2fac6
mov eax, 1
mov dword [ebx + 0x104], eax
mov dword [ebx + 4], 0xf4
mov eax, dword [ebp + 0x28]
mov edx, dword [ebp + 0x60]
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x70]
cmp edx, 1
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0xa0]
sete byte [esp + 0x4c]
mov dword [esp + 0x40], eax
jne 0xa2fa10
mov esi, dword [ebp + 0x7c]
mov dword [ebx + 0x18], 1
mov byte [esp + 0x5f], 0
mov byte [esp + 0x4c], 1
test esi, esi
je 0xa2f4ae
nop
mov edi, 2
mov eax, 2
mov dword [ebx + 0xfc], edi
mov ecx, 4
mov edi, dword [ebp + 0x5c]
jmp 0xa2f4c7
mov edx, dword [ebp + 0x270]
mov eax, 2
mov dword [ebx + 0x108], eax
test edx, edx
jne 0xa2faad
mov eax, dword [ebp + 0x274]
test eax, eax
jne 0xa2faad
mov byte [esp + 0x5e], 0
jmp 0xa2f80c
xor eax, eax
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x7c], 1
jmp 0xa2f720
mov eax, 1
mov dword [ebx + 0xe4], eax
mov eax, 1
mov dword [ebx + 0xe8], eax
xor eax, eax
mov dword [ebx + 0xec], eax
xor eax, eax
mov dword [ebx + 0xf0], eax
mov eax, dword [ebp + 0x228]
shl eax, 2
cmp eax, 1
jle 0xa2fa63
dec eax
pxor xmm0, xmm0
cvtsi2ss xmm0, eax
movss dword [esp], xmm0
call fcn.00bd2200
fstp dword [esp + 0x3c]
cvttss2si eax, dword [esp + 0x3c]
inc eax
mov dword [ebx + 0xf8], eax
mov dword [ebx + 0xf4], eax
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
mov dword [ebx + 0x98], eax
jmp 0xa2f78d
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0xa2fa40
mov edx, dword [ebp + 0x88]
test edx, edx
je 0xa2fa93
cmp dword [esp + 0x4c], 2
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 4
je 0xa2fa59
mov dword [ebx + 0x58], 1
mov dword [ebx + 0x2c], 0
jmp 0xa2f9b0
mov eax, dword [ebp + 0x328]
test eax, eax
mov dword [esp + 0x3c], eax
jne 0xa2f5c8
mov dword [ebx + 0x38], 1
mov eax, dword [ebx + 0x34]
jmp 0xa2f5e3
cmp dword [esp + 0x48], 0xa
jg 0xa2f8d1
xor ecx, ecx
mov edi, 2
jmp 0xa2f6f0
mov edi, 1
mov dword [ebx + 0x8c], edi
mov dword [ebx + 0x90], eax
mov dword [ebx + 0x94], eax
jmp 0xa2f745
mov byte [esp + 0x5f], 0
jmp 0xa2f4a3
xor edi, edi
xor eax, eax
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x100], edi
jmp 0xa2f508
cmp dword [esp + 0x4c], 2
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 4
jne 0xa2fae2
mov ecx, 5
jmp 0xa2f5ab
mov eax, 1
jmp 0xa2f93b
xor edi, edi
mov dword [ebx + 0x104], edi
mov byte [esp + 0x5e], 0
jmp 0xa2f817
mov dword [ebx + 4], 0x64
mov byte [esp + 0x5e], 1
jmp 0xa2f81e
mov dword [ebx + 0x20], 2
mov dword [ebx + 0x58], 1
mov dword [ebx + 0x2c], 0
jmp 0xa2f9b0
xor eax, eax
mov dword [ebx + 0x104], eax
mov dword [ebx + 4], 0x7a
mov byte [esp + 0x5e], 0
jmp 0xa2f81e
xor edx, edx
mov dword [ebx + 0x104], edx
jmp 0xa2f817
mov edi, dword [ebp + 0xa0]
mov dword [esp + 0x40], edi
jmp 0xa2f456
mov dword [ebx + 0x58], 1
mov dword [ebx + 0x2c], 0
jmp 0xa2f5c8
mov edi, dword [ebp + 0xa0]
test edi, edi
mov dword [esp + 0x40], edi
jne 0xa2f456
mov edi, dword [ebp + 0x328]
test edi, edi
jne 0xa2f456
mov esi, dword [ebp + 0x210]
test esi, esi
jle 0xa2fb28
mov dword [esp + 0x40], eax
jmp 0xa2f456
mov dword [esp + 0x40], eax
mov eax, 1
mov dword [ebx + 4], 0x42
jmp 0xa2f45d
mov ecx, dword [ebp + 0x274]
test ecx, ecx
jne 0xa2f40b
mov byte [esp + 0x5e], 1
jmp 0xa2f80c