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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
lea ecx, [esp - 0x180]
push 0xffffffffffffffff
push 0x100d4b4a
push eax
mov dword fs:[0], esp
sub esp, 0x1b0
push ebx
push esi
push edi
call fcn.1000f9a0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.10052810
test al, al
lea eax, [esp + 0x88]
je 0x100403d9
movdqa xmm0, xmmword [str.__hcy_n]
push 0xa
push 0x100e9434
jmp 0x100403eb
movdqa xmm0, xmmword [0x10102ca0]
push 0xb2
push 0x100e943c
movdqu xmmword [esp + 0x90], xmm0
push 7
xorps xmm0, xmm0
push eax
movdqu xmmword [esp + 0xa8], xmm0
movdqu xmmword [esp + 0xb8], xmm0
movdqu xmmword [esp + 0xc8], xmm0
movdqu xmmword [esp + 0xd8], xmm0
movdqu xmmword [esp + 0xe8], xmm0
movdqu xmmword [esp + 0xf8], xmm0
movdqu xmmword [esp + 0x108], xmm0
call fcn.100526a0
movdqa xmm0, xmmword [str.3440_u4__:uj]
add esp, 0x10
movdqu xmmword [esp + 0x88], xmm0
mov dword [esp + 0xc], eax
lea eax, [esp + 0x88]
movdqa xmm0, xmmword [0x101033e0]
push 0x5b
push 0x100e9444
movdqu xmmword [esp + 0xa0], xmm0
push 0x20
xorps xmm0, xmm0
push eax
movdqu xmmword [esp + 0xb8], xmm0
movdqu xmmword [esp + 0xc8], xmm0
movdqu xmmword [esp + 0xd8], xmm0
movdqu xmmword [esp + 0xe8], xmm0
movdqu xmmword [esp + 0xf8], xmm0
movdqu xmmword [esp + 0x108], xmm0
call fcn.100526a0
add esp, 0x10
lea ecx, [esp + 0x120]
push eax
call fcn.10013c20
mov dword [esp + 0x1c4], 0
lea edx, [esp + 0x54]
mov ecx, eax
call fcn.10045f00
lea edx, [esp + 0x50]
mov ecx, eax
call fcn.10045f00
lea edx, [esp + 0x4c]
mov ecx, eax
call fcn.10045f00
lea edx, [esp + 0x48]
mov ecx, eax
call fcn.10045f00
lea edx, [esp + 0xc]
mov ecx, eax
call fcn.10015da0
mov edx, eax
lea ecx, [esp + 0x10]
call fcn.10013db0
mov byte [esp + 0x1c4], 1
lea ecx, [esp + 0x28]
push 0xffffffffffffffff
push 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
push eax
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
call fcn.1000ff00
mov byte [esp + 0x1c4], 2
lea eax, [esp + 0x28]
cmp dword [esp + 0x3c], 0x10
mov byte [esp + 0x40], 0x2e
cmovae eax, dword [esp + 0x28]
mov dword [esp + 0x44], eax
mov byte [esp + 0x1c4], 3
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x84]
push eax
call fcn.100630c0
mov ecx, eax
call fcn.1002a540
mov byte [esp + 0x1c4], 5
cmp dword [esp + 0x3c], 0x10
jb 0x100405a9
push dword [esp + 0x28]
call fcn.100aafe6
add esp, 4
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
mov byte [esp + 0x1c4], 7
cmp dword [esp + 0x24], 0x10
jb 0x100405d9
push dword [esp + 0x10]
call fcn.100aafe6
add esp, 4
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
mov byte [esp + 0x1c4], 8
lea ecx, [esp + 0x120]
call fcn.10011cc0
cmp byte [esp + 0x80], 0
jne 0x100406bc
xor dl, dl
mov ecx, 0x2719
call fcn.100283a0
lea ecx, [esp + 0x10]
call fcn.1000fb80
mov byte [esp + 0x1c4], 9
mov edx, eax
lea ecx, [esp + 0x108]
call fcn.10011190
mov esi, eax
mov byte [esp + 0x1c4], 0xa
call fcn.10040dd0
push eax
lea ecx, [esp + 0x124]
call fcn.10013c20
mov byte [esp + 0x1c4], 0xb
mov edx, esi
mov ecx, eax
call fcn.1001c640
mov edx, eax
lea ecx, [esp + 0x28]
call fcn.10013db0
mov byte [esp + 0x1c4], 0xc
cmp dword [eax + 0x14], 0x10
jb 0x10040683
mov eax, dword [eax]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x48]
lea eax, [esp + 0xc]
push eax
call fcn.100ab948
mov byte [esp + 0x1c4], 0xd
mov dword [esp + 0x48], vtable.message_exception.0
mov byte [esp + 0x1c4], 0xc
lea eax, [esp + 0x48]
push 0x101230f0
push eax
call fcn.100b15bb
call fcn.10040e30
push eax
lea ecx, [esp + 0x6c]
call fcn.10010920
mov byte [esp + 0x1c4], 0xe
cmp dword [esp + 0x54], 0x1d
jbe 0x1004070a
call fcn.10040f90
mov edx, eax
cmp word [edx], 0
jne 0x100406eb
xor ecx, ecx
jmp 0x100406ff
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100406f0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x70]
call fcn.10010820
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov dword [esp + 0x64], eax
mov edi, edi
test eax, eax
jne 0x100407fa
cmp dword [esp + 0x7c], 8
lea ecx, [esp + 0x64]
lea eax, [esp + 0x68]
cmovae eax, dword [esp + 0x68]
push ecx
push eax
push 2
call ebx
test eax, eax
jne 0x10040748
push 0x32
call edi
inc esi
cmp esi, 0x258
jge 0x10040757
mov eax, dword [esp + 0x64]
jmp 0x10040720
cmp dword [esp + 0x64], 0
jne 0x100407fa
movdqa xmm0, xmmword [0x101034f0]
lea eax, [esp + 0x88]
push 0xfd
movdqu xmmword [esp + 0x8c], xmm0
push 0x100e94b8
movdqa xmm0, xmmword [0x10102c00]
movdqu xmmword [esp + 0xa0], xmm0
push 0x16
xorps xmm0, xmm0
push eax
movdqu xmmword [esp + 0xb8], xmm0
movdqu xmmword [esp + 0xc8], xmm0
movdqu xmmword [esp + 0xd8], xmm0
movdqu xmmword [esp + 0xe8], xmm0
movdqu xmmword [esp + 0xf8], xmm0
movdqu xmmword [esp + 0x108], xmm0
call fcn.100526a0
add esp, 0x10
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x48]
push eax
call fcn.100ab948
push 0x10123294
lea eax, [esp + 0x4c]
push eax
call fcn.100b15bb
movdqa xmm0, xmmword [0x10102e20]
lea eax, [esp + 0x88]
push 0xa6
push 0x100e94d0
movdqu xmmword [esp + 0x90], xmm0
push 9
xorps xmm0, xmm0
push eax
movdqu xmmword [esp + 0xa8], xmm0
movdqu xmmword [esp + 0xb8], xmm0
movdqu xmmword [esp + 0xc8], xmm0
movdqu xmmword [esp + 0xd8], xmm0
movdqu xmmword [esp + 0xe8], xmm0
movdqu xmmword [esp + 0xf8], xmm0
movdqu xmmword [esp + 0x108], xmm0
call fcn.100526a0
mov edx, eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
add esp, 0x10
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
cmp byte [edx], 0
jne 0x10040899
xor ecx, ecx
jmp 0x100408a9
mov ecx, edx
lea esi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100408a0
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.10010290
mov byte [esp + 0x1c4], 0xf
lea eax, [esp + 0x28]
cmp dword [esp + 0x3c], 0x10
mov byte [esp + 0x40], 0x2e
cmovae eax, dword [esp + 0x28]
mov dword [esp + 0x44], eax
mov byte [esp + 0x1c4], 0x10
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x84]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.10036680
mov esi, eax
mov byte [esp + 0x1c4], 0x11
cmp dword [esi + 0x14], 0x10
jb 0x10040903
mov esi, dword [esi]
call fcn.100ac23b
push 0x10
mov dword [eax], 0
lea eax, [esp + 0x10]
push eax
push esi
call fcn.100ac4df
add esp, 0xc
mov edi, eax
cmp esi, dword [esp + 0xc]
jne 0x10040930
push str.invalid_stoul_argument
call fcn.100a6c54
call fcn.100ac23b
cmp dword [eax], 0x22
jne 0x10040944
push str.stoul_argument_out_of_range
call fcn.100a6cb0
mov byte [esp + 0x1c4], 0x10
cmp dword [esp + 0x24], 0x10
jb 0x1004095f
push dword [esp + 0x10]
call fcn.100aafe6
add esp, 4
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
mov byte [esp + 0x1c4], 0xe
cmp dword [esp + 0x3c], 0x10
jb 0x1004098f
push dword [esp + 0x28]
call fcn.100aafe6
add esp, 4
cmp dword [esp + 0x7c], 8
lea edx, [esp + 0x68]
mov dword [esp + 0x58], 0
cmovae edx, dword [esp + 0x68]
xor eax, eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
cmp word [edx], ax
jne 0x100409e2
xor ecx, ecx
jmp 0x100409f6
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100409e7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x50]
call fcn.10010820
mov byte [esp + 0x1c4], 0x13
sub esp, 8
lea edx, [esp + 0x50]
lea ecx, [esp + 0x18]
push edi
call fcn.100458c0
add esp, 0xc
mov byte [esp + 0x1c4], 0x14
push eax
call fcn.10044db0
mov byte [esp + 0x1c4], 0x15
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x10040a55
mov edx, dword [ecx]
lea eax, [esp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esp + 0x20], 0
mov byte [esp + 0x1c4], 0x13
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x10040a7f
mov edx, dword [ecx]
lea eax, [esp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esp + 0x20], 0
mov byte [esp + 0x1c4], 0xe
cmp dword [esp + 0x5c], 8
jb 0x10040a9a
push dword [esp + 0x48]
call fcn.100aafe6
add esp, 4
movdqa xmm0, xmmword [0x10102d30]
xor eax, eax
push 0x4f
push 0x100e94dc
mov word [esp + 0x50], ax
mov byte [esp + 0x14], al
lea eax, [esp + 0x90]
movdqu xmmword [esp + 0x90], xmm0
mov dword [esp + 0x64], 7
xorps xmm0, xmm0
mov dword [esp + 0x60], 0
push 8
push eax
movdqu xmmword [esp + 0xa8], xmm0
movdqu xmmword [esp + 0xb8], xmm0
movdqu xmmword [esp + 0xc8], xmm0
movdqu xmmword [esp + 0xd8], xmm0
movdqu xmmword [esp + 0xe8], xmm0
movdqu xmmword [esp + 0xf8], xmm0
movdqu xmmword [esp + 0x108], xmm0
call fcn.100526a0
add esp, 0x10
push dword [esp + 0xc]
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.10028240
mov byte [esp + 0x1c4], 0x16
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x84]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.10036680
mov byte [esp + 0x1c4], 0x17
push ecx
mov ecx, eax
call fcn.100485c0
add esp, 4
mov esi, eax
mov byte [esp + 0x1c4], 0x16
cmp dword [esp + 0x24], 0x10
jb 0x10040b7e
push dword [esp + 0x10]
call fcn.100aafe6
add esp, 4
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
mov byte [esp + 0x1c4], 0xe
cmp dword [esp + 0x3c], 0x10
jb 0x10040bae
push dword [esp + 0x28]
call fcn.100aafe6
add esp, 4
cmp dword [esp + 0x7c], 8
lea eax, [esp + 0x68]
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0xf
cmovae eax, dword [esp + 0x68]
push eax
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
call fcn.10010920
mov byte [esp + 0x1c4], 0x19
sub esp, 8
lea edx, [esp + 0x18]
lea ecx, [esp + 0x50]
push esi
call fcn.10045920
add esp, 0xc
mov byte [esp + 0x1c4], 0x1a
push eax
call fcn.10044db0
mov byte [esp + 0x1c4], 0x19
lea ecx, [esp + 0x48]
call fcn.10044d30
mov byte [esp + 0x1c4], 0xe
cmp dword [esp + 0x24], 8
jb 0x10040c31
push dword [esp + 0x10]
call fcn.100aafe6
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov byte [esp + 0xc], al
push dword [esp + 0xc]
mov dword [esp + 0x24], 0
push ecx
mov word [esp + 0x18], ax
call fcn.100410f0
push eax
lea ecx, [esp + 0x34]
call fcn.10028240
mov byte [esp + 0x1c4], 0x1b
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x84]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.10036680
mov byte [esp + 0x1c4], 0x1c
push ecx
mov ecx, eax
call fcn.100485c0
add esp, 4
mov esi, eax
mov byte [esp + 0x1c4], 0x1b
cmp dword [esp + 0x24], 0x10
jb 0x10040cae
push dword [esp + 0x10]
call fcn.100aafe6
add esp, 4
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
mov byte [esp + 0x1c4], 0xe
cmp dword [esp + 0x3c], 0x10
jb 0x10040cde
push dword [esp + 0x28]
call fcn.100aafe6
add esp, 4
cmp dword [esp + 0x7c], 8
lea eax, [esp + 0x68]
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0xf
cmovae eax, dword [esp + 0x68]
push eax
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
call fcn.10010920
mov byte [esp + 0x1c4], 0x1e
sub esp, 8
lea edx, [esp + 0x18]
lea ecx, [esp + 0x50]
push esi
call fcn.10045980
add esp, 0xc
mov byte [esp + 0x1c4], 0x1f
push eax
call fcn.10044db0
mov byte [esp + 0x1c4], 0x1e
lea ecx, [esp + 0x48]
call fcn.10044d30
mov byte [esp + 0x1c4], 0xe
cmp dword [esp + 0x24], 8
jb 0x10040d61
push dword [esp + 0x10]
call fcn.100aafe6
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
mov byte [esp + 0x1c4], 8
cmp dword [esp + 0x7c], 8
jb 0x10040d93
push dword [esp + 0x68]
call fcn.100aafe6
add esp, 4
xor eax, eax
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], 0
mov word [esp + 0x68], ax
mov dword [esp + 0x1c4], 0xffffffff
mov ecx, dword [esp + 0x1bc]
pop edi
pop esi
mov byte [esp + 0x78], al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret