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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4390db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x550
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call fcn.0041b785
push eax
call fcn.0041b756
add esp, 8
xor esi, esi
call fcn.0041b763
and eax, 0x800000ff
jns 0x40104a
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + esi + 0x78], al
inc esi
cmp esi, 0xff
jl 0x401037
call dword [0x43b600]
xor ecx, ecx
mov dword [esp + 0x50], ecx
add eax, 0xea60
mov dword [esp + 0x54], ecx
push eax
mov dword [esp + 0x5c], ecx
lea edx, [esp + 0x54]
mov dword [esp + 0x60], ecx
push 0x43b6a0
push edx
mov dword [esp + 0x6c], ecx
call fcn.0041b6fe
add esp, 0xc
lea eax, [esp + 0x258]
push eax
push 0x100
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
call dword [0x43b2fc]
push 0x7f
lea ecx, [esp + 0x4dc]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push ecx
push 0x7f
lea edx, [esp + 0x370]
push edx
lea eax, [esp + 0x274]
push eax
mov byte [esp + 0x27b], bl
call dword [0x43b300]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
push edx
mov dword [esp + 0x70], ecx
lea eax, [esp + 0x68]
mov dword [esp + 0x74], ecx
push 0x43b6a0
push eax
mov dword [esp + 0x80], ecx
call fcn.0041b6fe
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
add esp, 0xc
sub eax, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
je 0x401159
sub eax, 2
jne 0x40118b
mov edx, dword [str.hoangminh852]
mov eax, dword [0x43b694]
mov ecx, dword [0x43b698]
mov dword [esp + 0xc], edx
mov dl, byte [0x43b69c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov byte [esp + 0x18], dl
jmp 0x40118b
mov eax, dword [str.N.H.M_HandSome]
mov ecx, dword [0x43b684]
mov edx, dword [0x43b688]
mov dword [esp + 0xc], eax
mov ax, word [0x43b68c]
mov dword [esp + 0x10], ecx
mov cl, byte [0x43b68e]
mov dword [esp + 0x14], edx
mov word [esp + 0x18], ax
mov byte [esp + 0x1a], cl
movzx eax, byte [esp + 0x176]
cdq
mov ecx, 0xa
idiv ecx
xor esi, esi
mov ecx, edx
nop
mov eax, 0xcccccccd
mul esi
shr edx, 3
lea edx, [edx + edx*4]
lea eax, [ecx + edx*2]
mov dl, byte [esp + eax + 0x50]
mov byte [esp + eax + 0x78], dl
mov dl, byte [esp + eax + 0x64]
mov byte [esp + eax + 0x8c], dl
mov dl, byte [esp + eax + 0xc]
mov byte [esp + eax + 0xa0], dl
lea eax, [ecx + 7]
cdq
mov ecx, 0xa
idiv ecx
inc esi
cmp esi, 0x14
mov ecx, edx
jl 0x4011a0
xor al, al
mov byte [esp + 0x175], al
xor ecx, ecx
lea esp, [esp]
add al, byte [esp + ecx + 0x78]
mov byte [esp + 0x175], al
add al, byte [esp + ecx + 0x79]
mov byte [esp + 0x175], al
add al, byte [esp + ecx + 0x7a]
mov byte [esp + 0x175], al
add al, byte [esp + ecx + 0x7b]
mov byte [esp + 0x175], al
add al, byte [esp + ecx + 0x7c]
mov byte [esp + 0x175], al
add al, byte [esp + ecx + 0x7d]
add ecx, 6
cmp ecx, 0x3c
mov byte [esp + 0x175], al
jl 0x4011f0
lea ecx, [esp + 0x178]
call fcn.0040dcf0
xor edx, edx
xor eax, eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x564], ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x3c], eax
cmp eax, 0x10
jge 0x40128c
mov cl, byte [esp + eax + 0x140]
mov dl, byte [esp + eax + 0x154]
mov byte [esp + eax + 0x40], cl
mov byte [esp + eax + 0x30], dl
inc eax
cmp eax, 0x14
jl 0x401271
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x180]
call fcn.0040dd10
test al, al
je 0x4012d3
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x3dc]
push eax
push 0x3c
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0x188]
call fcn.0040ddf0
test al, al
jne 0x401303
lea ecx, [esp + 0x178]
mov dword [esp + 0x564], 0xffffffff
call fcn.0040dd00
xor al, al
mov ecx, dword [esp + 0x55c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x20]
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x3d8]
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
mov byte [esp + 0x178], al
call dword [0x43b4d0]
test eax, eax
je 0x40137b
push 0x100
push 0x2000
call dword [0x43b304]
mov ebx, eax
push ebx
call dword [0x43b308]
mov edi, eax
mov ecx, 0x3f
lea esi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push ebx
movsb byte es:[edi], byte [esi]
call dword [0x43b30c]
push ebx
push 0x562
call dword [0x43b4cc]
test eax, eax
setne bl
call dword [0x43b4c8]
lea ecx, [esp + 0x178]
mov dword [esp + 0x564], 0xffffffff
call fcn.0040dd00
mov ecx, dword [esp + 0x55c]
pop edi
pop esi
mov al, bl
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4