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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x429db8]
mov esi, dword [0x429e08]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x429ddc]
imul eax, esi
mov edx, dword [ebp - 0x1c]
mov dword [edx], eax
mov eax, dword [0x429dd0]
mov dword [edx + 8], 0
mov dword [edx + 4], eax
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov eax, dword [0x429dcc]
mov dword [edx + 0x14], eax
or edx, 0xffffffff
mov eax, dword [0x429e00]
shr eax, 0xa
test eax, eax
jle 0x40a4d8
xor edx, edx
lea esi, [esi]
sar eax, 1
inc edx
test eax, eax
jg 0x40a4d0
dec edx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x18], edx
or edx, 0xffffffff
mov eax, dword [0x429e00]
shr eax, 0xa
test eax, eax
jle 0x40a4f8
xor edx, edx
nop
sar eax, 1
inc edx
test eax, eax
jg 0x40a4f0
dec edx
mov esi, dword [ebp - 0x1c]
mov edi, esi
mov dword [esi + 0x1c], edx
add edi, 0x88
mov eax, dword [0x429e04]
mov dword [esi + 0x20], eax
mov eax, dword [0x429e04]
mov dword [esi + 0x24], eax
mov eax, dword [0x429e08]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], 0
mov word [esi + 0x34], 0
mov word [esi + 0x36], 0xffff
mov word [esi + 0x38], 0xef53
mov word [esi + 0x3a], 1
mov word [esi + 0x3c], 2
mov word [esi + 0x3e], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 1
mov word [esi + 0x50], 0
mov word [esi + 0x52], 0
mov dword [esi + 0x54], 0xb
mov eax, dword [0x429e0c]
mov word [esi + 0x5a], 0
mov word [esi + 0x58], ax
mov ax, word [0x429e1a]
and eax, 0xffff
mov dword [esi + 0x5c], eax
mov eax, dword [0x429e1c]
and eax, 0xffff
mov dword [esi + 0x60], eax
mov eax, dword [0x429e18]
and eax, 0xffff
mov dword [esi + 0x64], eax
mov eax, esi
add eax, 0x68
push ebx
push eax
mov ecx, dword [0x429e24]
push ecx
push str.extandroid_make_ext4fs
call fcn.0040c420
mov eax, esi
add eax, 0x78
mov dword [esi + 0x78], 0
add esp, 0xc
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
push 0x10
mov edx, dword [0x429e24]
push edx
push eax
call sub.msvcrt.dll_strncpy
xor eax, eax
cld
mov ecx, 0x10
add esp, 0x10
rep stosd dword es:[edi], eax
mov dword [esi + 0xc8], 0
mov eax, dword [0x429e20]
mov byte [esi + 0xcc], 0
mov word [esi + 0xce], ax
mov byte [esi + 0xcd], 0
test byte [0x429e1a], 4
je 0x40a645
mov dword [esi + 0xe0], 8
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0xe4], 0
mov dword [eax + 0xe8], 0
mov dword [eax + 0xec], 0
mov byte [eax + 0xfc], 2
mov byte [eax + 0xfd], 1
mov word [eax + 0xfe], 0x20
mov dword [eax + 0x100], 0
mov dword [eax + 0x104], 0
mov dword [eax + 0x108], 0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [0x429dd4]
mov dword [ecx + 0x150], eax
mov dword [ecx + 0x154], 0
mov dword [ecx + 0x158], 0
mov word [ecx + 0x15c], 0x1c
mov word [ecx + 0x15e], 0x1c
mov dword [ecx + 0x160], 0
mov word [ecx + 0x164], 0
mov word [ecx + 0x166], 0
mov dword [ecx + 0x168], 0
mov dword [ecx + 0x16c], 0
mov dword [ecx + 0x170], 0
mov byte [ecx + 0x174], 0
mov dword [ecx + 0x178], 0
mov dword [ecx + 0x17c], 0
mov edi, dword [0x429ddc]
test edi, edi
je 0x40a8b0
mov eax, dword [0x429e04]
mov dword [ebp - 0x10], 0
jmp 0x40a7ec
mov eax, dword [ebp - 0x18]
mov esi, dword [0x429de0]
inc eax
mov ebx, dword [0x429dc0]
push eax
mov eax, dword [0x429e00]
imul eax, esi
mov ecx, dword [0x429e2c]
push eax
push ebx
push ecx
call fcn.0040f8e0
mov edx, dword [0x429de0]
mov eax, dword [0x429e20]
add esp, 0x10
add eax, edx
lea edx, [eax + 1]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
shl ebx, 5
add edx, eax
mov eax, dword [0x429dc0]
lea ecx, [edx + 1]
mov dword [eax + ebx], edx
add edx, 2
mov eax, dword [0x429dc0]
mov dword [eax + ebx + 4], ecx
mov eax, dword [0x429dc0]
mov dword [eax + ebx + 8], edx
mov esi, dword [ebp - 0x1c]
mov eax, dword [0x429dc0]
mov edx, dword [esi + 0x20]
mov word [eax + ebx + 0xc], dx
mov eax, dword [0x429dc0]
mov edx, dword [esi + 0x28]
mov word [eax + ebx + 0xe], dx
mov eax, dword [0x429dc0]
mov word [eax + ebx + 0x10], 0
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [0x429ddc], eax
jbe 0x40a8b0
mov eax, dword [0x429e04]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x10]
imul eax, esi
mov esi, dword [0x429dcc]
push ebx
add eax, esi
mov dword [ebp - 0x18], eax
call fcn.00409b10
xor edx, edx
pop ecx
test eax, eax
je 0x40a77d
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x40a743
mov eax, dword [ebp - 0x10]
shl eax, 2
mov dword [ebp - 0x14], eax
mov ebx, eax
mov eax, dword [0x429dbc]
add ebx, eax
push eax
push eax
mov eax, dword [0x429e00]
push 1
push eax
call sub.msvcrt.dll_calloc
mov dword [ebx], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [0x429dbc]
mov edx, dword [0x429e00]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ecx + eax]
mov ecx, edx
cld
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test dl, 2
mov ebx, esi
je 0x40a86e
mov ax, word [esi]
add ebx, 2
mov word [edi], ax
add edi, 2
and edx, 1
je 0x40a877
mov al, byte [ebx]
mov byte [edi], al
mov edx, dword [ebp - 0x14]
mov eax, dword [0x429dbc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + eax]
mov word [eax + 0x5a], cx
mov eax, dword [ebp - 0x18]
mov edi, dword [0x429e2c]
push eax
mov eax, dword [0x429e00]
push eax
mov eax, dword [0x429dbc]
mov eax, dword [edx + eax]
push eax
push edi
call fcn.0040f8e0
add esp, 0x20
jmp 0x40a743
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret