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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x431104]
imul eax, dword [0x431150]
mov ebx, dword [0x4310e0]
mov dword [ebx], eax
mov eax, dword [0x4310f8]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 4], eax
mov eax, dword [0x4310f4]
mov dword [ebx + 0x14], eax
mov eax, dword [0x431148]
shr eax, 0xa
test eax, eax
je 0x40a4d4
mov edx, eax
xor ecx, ecx
jmp 0x40a0d8
mov ecx, esi
sar edx, 1
lea esi, [ecx + 1]
jne 0x40a0d6
mov dword [ebx + 0x18], ecx
xor edx, edx
add edx, 1
sar eax, 1
jne 0x40a0e4
sub edx, 1
mov eax, dword [0x43114c]
mov ecx, 1
xor edi, edi
mov dword [ebx + 0x1c], edx
xor ebp, ebp
mov edx, 0xffffef53
mov esi, 2
mov word [ebx + 0x38], dx
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov eax, dword [0x431150]
mov word [ebx + 0x3a], cx
mov dword [ebx + 0x2c], 0
mov word [ebx + 0x3e], di
lea edi, [ebx + 0x88]
mov dword [ebx + 0x28], eax
xor eax, eax
mov word [ebx + 0x34], ax
mov eax, 0xffffffff
mov word [ebx + 0x36], ax
xor eax, eax
mov word [ebx + 0x52], ax
mov eax, dword [0x431154]
mov dword [ebx + 0x30], 0
mov word [ebx + 0x3c], si
mov dword [ebx + 0x40], 0
mov word [ebx + 0x58], ax
xor eax, eax
mov word [ebx + 0x5a], ax
movzx eax, word [0x431162]
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 1
mov dword [ebx + 0x5c], eax
movzx eax, word [0x431164]
mov word [ebx + 0x50], bp
mov dword [ebx + 0x54], 0xb
mov dword [ebx + 0x60], eax
movzx eax, word [0x431160]
mov dword [ebx + 0x64], eax
lea eax, [ebx + 0x68]
mov dword [esp + 8], eax
mov eax, dword [0x43116c]
mov dword [esp + 4], eax
mov dword [esp], str.extandroid_make_ext4fs
call fcn.0040cc40
lea eax, [ebx + 0x78]
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov edx, dword [0x43116c]
mov dword [esp + 8], 0x10
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_strncpy
test edi, 1
mov edx, 0x40
jne 0x40a4a8
test edi, 2
jne 0x40a4c3
mov ecx, edx
xor eax, eax
shr ecx, 2
test dl, 2
rep stosd dword es:[edi], eax
je 0x40a233
xor eax, eax
add edi, 2
mov word [edi - 2], ax
and edx, 1
je 0x40a23b
mov byte [edi], 0
mov eax, dword [0x431168]
test byte [0x431162], 4
mov dword [ebx + 0xc8], 0
mov byte [ebx + 0xcc], 0
mov word [ebx + 0xce], ax
mov byte [ebx + 0xcd], 0
je 0x40a272
mov dword [ebx + 0xe0], 8
mov eax, dword [0x4310fc]
mov esi, 0x1c
xor ebp, ebp
mov ecx, 0x20
mov edi, 0x1c
mov word [ebx + 0x15c], si
xor esi, esi
mov dword [ebx + 0xe4], 0
mov dword [ebx + 0x150], eax
xor eax, eax
mov word [ebx + 0x166], ax
mov eax, dword [0x431104]
mov dword [ebx + 0xe8], 0
mov dword [ebx + 0xec], 0
mov byte [ebx + 0xfc], 2
test eax, eax
mov byte [ebx + 0xfd], 1
mov word [ebx + 0xfe], cx
mov dword [ebx + 0x100], 0
mov dword [ebx + 0x104], 0
mov dword [ebx + 0x108], 0
mov dword [ebx + 0x154], 0
mov dword [ebx + 0x158], 0
mov word [ebx + 0x15e], di
mov dword [ebx + 0x160], 2
mov word [ebx + 0x164], bp
mov dword [ebx + 0x168], 0
mov dword [ebx + 0x16c], 0
mov dword [ebx + 0x170], 0
mov byte [ebx + 0x174], 0
mov dword [ebx + 0x178], 0
mov dword [ebx + 0x17c], 0
jne 0x40a3f7
jmp 0x40a4a0
lea eax, [edi + 1]
mov dword [esp + 0xc], eax
mov eax, dword [0x431148]
imul eax, dword [0x431108]
mov dword [esp + 8], eax
mov eax, dword [0x4310e8]
mov dword [esp + 4], eax
mov eax, dword [0x431120]
mov dword [esp], eax
call fcn.0040fab0
mov edx, dword [0x431108]
add edx, dword [0x431168]
add edx, 1
add edi, edx
mov edx, dword [0x4310e8]
mov eax, esi
shl eax, 5
add esi, 1
lea ecx, [edi + 1]
mov dword [edx + eax], edi
mov edx, dword [0x4310e8]
add edi, 2
mov dword [edx + eax + 4], ecx
mov edx, dword [0x4310e8]
mov dword [edx + eax + 8], edi
mov edx, dword [ebx + 0x20]
add eax, dword [0x4310e8]
mov word [eax + 0xc], dx
mov edx, dword [ebx + 0x28]
mov word [eax + 0xe], dx
xor edx, edx
mov word [eax + 0x10], dx
cmp dword [0x431104], esi
jbe 0x40a4a0
mov dword [esp], esi
mov edi, dword [0x43114c]
call fcn.00409a50
xor edx, edx
imul edi, esi
add edi, dword [0x4310f4]
test eax, eax
je 0x40a3a4
test esi, esi
je 0x40a368
mov edx, dword [0x4310e4]
lea ebp, [esi*4]
mov eax, dword [0x431148]
mov dword [esp + 4], 1
add edx, ebp
mov dword [esp], eax
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_calloc
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, dword [0x4310e4]
mov edx, dword [0x431148]
mov eax, dword [eax + esi*4]
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
add ebp, dword [0x4310e4]
mov eax, dword [ebp]
mov word [eax + 0x5a], si
mov eax, dword [0x431148]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov eax, dword [ebp]
mov dword [esp + 4], eax
mov eax, dword [0x431120]
mov dword [esp], eax
call fcn.0040fab0
jmp 0x40a368
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebx + 0x89]
mov dl, 0x3f
test edi, 2
mov byte [ebx + 0x88], 0
je 0x40a21c
xor eax, eax
add edi, 2
mov word [edi - 2], ax
sub edx, 2
jmp 0x40a21c
mov dword [ebx + 0x18], 0xffffffff
mov edx, 0xffffffff
jmp 0x40a0ee