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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x10058503
push eax
mov dword fs:[0], esp
sub esp, 0x88
cmp byte [ebp + 0x20], 0
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
je 0x10003d18
cmp byte [ebp + 0x28], 0
je 0x10003d0b
push 1
push 0x2364
push ecx
push 0x7df1
mov edx, 0x7640
call fcn.100034f2
xor ebx, ebx
mov dword [esp + 0x68], 7
xor eax, eax
mov dword [esp + 0x64], ebx
add esp, 0x10
mov word [esp + 0x44], ax
mov dword [esp + 0x9c], ebx
lea ecx, [esp + 0x5c]
inc eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0xfffffffe
mov dword [esp + 0x10], 0x24b54114
mov dword [esp + 0x1c], 0x67457993
push eax
call fcn.100013ad
xor edx, edx
inc edx
mov byte [esp + 0x9c], dl
mov dword [esp + 0xc], ebx
jmp 0x10003aa5
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x5c]
mov dword [eax + ecx*4], 0x95761be3
inc dword [esp + 0xc]
cmp dword [esp + 0xc], edx
jl 0x10003a92
mov dword [esp + 0xc], ebx
jmp 0x10003ac1
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x2c], 0x45cb296a
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 2
jl 0x10003ab1
lea eax, [esp + 0x10]
mov ecx, 0x73bc
push eax
push edx
push 0x1377
lea eax, [esp + 0x24]
push eax
push 0x677
push edx
push 0x6622
lea eax, [esp + 0x3c]
push eax
push edx
lea edx, [esp + 0x40]
call fcn.10003660
add esp, 0x24
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x1c], ebx
jg 0x10003c6d
mov esi, 0xb108f980
mov dword [esp + 0x14], 0xda781b5f
lea ecx, [esp + 0x6c]
mov dword [esp + 0xc], 0xc5a4a104
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
push 1
call fcn.100013ad
push 1
push 0x1c6f
push ecx
lea eax, [esp + 0x78]
mov byte [esp + 0xa8], 2
push eax
lea eax, [esp + 0x78]
mov edx, 0x705e
push eax
push ecx
call fcn.1000379d
add esp, 0x18
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x20], ebx
jl 0x10003c46
mov dword [esp + 0x24], 0x2a6add33
xor edx, edx
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
cmp eax, ecx
mov eax, dword [esp + 0x18]
setl dl
xor ecx, ecx
cmp eax, edx
mov eax, dword [esp + 0x10]
setg cl
xor edx, edx
cmp ecx, eax
mov eax, dword [esp + 0x24]
setg dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [esp + 0x24]
setl cl
xor edx, edx
cmp ecx, 0x40a9711f
setle dl
xor ecx, ecx
cmp edx, eax
setg cl
imul ecx, dword [esp + 0x24]
test ecx, ecx
je 0x10003bdc
cmp dword [esp + 0x24], ebx
je 0x10003bdc
xor eax, eax
inc eax
jmp 0x10003bde
mov eax, ebx
add eax, 0xcc6a3362
xor edx, edx
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
cmp eax, ecx
setge dl
cmp dword [esp + 0x10], edx
je 0x10003c06
cmp dword [esp + 0x14], ebx
jne 0x10003c06
mov eax, ebx
jmp 0x10003c09
xor eax, eax
inc eax
mov dword [esp + 0x38], eax
cmp dword [esp + 0x18], ebx
je 0x10003c1e
cmp dword [esp + 0x24], ebx
je 0x10003c1e
xor eax, eax
inc eax
jmp 0x10003c20
mov eax, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
jmp 0x10003c36
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], eax
inc dword [esp + 0xc]
cmp dword [esp + 0xc], ebx
jle 0x10003c2a
dec dword [esp + 0x20]
jns 0x10003b6e
mov dword [esp + 0x38], 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0x9c], 1
call fcn.1000140a
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], ebx
jle 0x10003b0d
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9c], bl
call fcn.1000140a
lea eax, [esp + 0x44]
push eax
push ecx
lea eax, [ebp + 8]
push eax
push 0x2b4e
push ecx
push 0x6466
push ecx
mov cl, 1
call fcn.10003987
mov eax, dword [0x100744ac]
add esp, 0x1c
test al, 1
jne 0x10003cce
or eax, 1
mov dword [0x100744ac], eax
push 0x9ff2
mov byte [esp + 0xa0], 3
call fcn.1001f169
pop ecx
mov word [0x100744b8], ax
mov byte [esp + 0x9c], bl
mov esi, dword [ebp + 8]
test esi, esi
je 0x10003ce7
push ecx
lea eax, [esp + 0x48]
push eax
push ecx
call fcn.1000406d
add esp, 0xc
dec esi
jne 0x10003cd5
lea eax, [esp + 0x44]
cmp edi, eax
je 0x10003cfa
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.10004708
push ebx
push 1
lea ecx, [esp + 0x4c]
call fcn.10004836
jmp 0x10003e07
push 0
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10003e07
cmp byte [ebp + 0x14], 0
je 0x10003ded
mov dword [esp + 0x14], 0x4b20
cmp dword [esp + 0x14], 0x4cbe
jle 0x10003da2
xor ebx, ebx
mov esi, ebx
mov dword [esp + 0x18], ebx
mov edi, ebx
mov dword [esp + 0x10], ebx
mov eax, esi
cdq
idiv edi
mov edi, 0x17c9
mov esi, edx
mov eax, esi
lea ecx, [esp + 0x78]
cdq
push edx
push eax
call fcn.10001331
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10003d66
mov eax, dword [eax]
push eax
call fcn.10040c20
pop ecx
push ebx
push 1
lea ecx, [esp + 0x80]
call fcn.10001542
inc esi
dec edi
jne 0x10003d4e
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
inc edi
mov dword [esp + 0x10], edi
cmp edi, 0x650b
jl 0x10003d42
inc esi
mov dword [esp + 0x18], esi
cmp esi, 0x2cac
jl 0x10003d3c
cmp dword [esp + 0x14], 0x4875
jge 0x10003db7
push str.nhvjlmhzv_vpykor_opvajnsv_trscspkb_wqbo_oiyqyvxi_gznmdqmxp_bxtnysfdd_egbtaoyj
call fcn.10040c20
pop ecx
mov eax, dword [ebp + 0x24]
or dword [esp + 0x9c], 0xffffffff
push 0x1a
pop esi
mov ecx, dword [eax]
cmp ecx, esi
jge 0x10003dd5
mov eax, dword [ebp + 0x1c]
movzx edx, word [eax]
add edx, ecx
jmp 0x10003de2
mov eax, ecx
cdq
idiv esi
mov eax, dword [ebp + 0x18]
movzx eax, word [eax]
add edx, eax
mov ecx, dword [ebp + 0xc]
push edx
call fcn.100043ea
jmp 0x10003e07
xor ebx, ebx
mov dword [esi], ebx
cmp dword [esi], 2
jge 0x10003e07
mov edx, dword [ebp + 0x10]
mov ecx, dword [esi]
mov eax, dword [edx]
mov dword [eax + ecx*4], ebx
inc dword [esi]
cmp dword [esi], 2
jl 0x10003df9
mov ecx, dword [esp + 0x94]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret