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

Disassembly:
push 0xffffffffffffffff
push 0x1008148c
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x100c2d54]
xor eax, esp
mov dword [esp + 0x1f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c2d54]
xor eax, esp
push eax
lea eax, [esp + 0x208]
mov dword fs:[0], eax
call fcn.10039130
mov al, al
mov ebx, 1
mov dword [0x100af2f4], ebx
push eax
pop eax
mov edi, dword [0x101d8c20]
sub edi, dword [0x101d8c1c]
sar edi, 2
mov dword [esp + 0xe8], edi
mov ah, ah
xor esi, esi
mov dword [esp + 0x48], esi
mov ebx, ebx
mov eax, dword [0x101d8c20]
sub eax, dword [0x101d8c1c]
sar eax, 2
test esi, esi
test al, al
xor ecx, ecx
cmp eax, esi
jle 0x10039237
mov edx, dword [0x101d8c1c]
lea ecx, [ecx]
cmp dword [edx + ecx*4], 0x717be386
je 0x10039231
add ecx, ebx
cmp ecx, eax
jl 0x10039220
jmp 0x10039237
mov dword [esp + 0x48], ebx
test bl, bl
mov dword [esp + 0x4c], esi
test dh, dh
mov eax, dword [0x101d8c20]
sub eax, dword [0x101d8c1c]
sar eax, 2
test esi, esi
test al, al
xor ecx, ecx
cmp eax, esi
jle 0x10039277
mov edx, dword [0x101d8c1c]
jmp 0x10039260
cmp dword [edx + ecx*4], 0x317aa725
je 0x10039271
add ecx, ebx
cmp ecx, eax
jl 0x10039260
jmp 0x10039277
mov dword [esp + 0x4c], ebx
mov al, al
mov dword [esp + 0x44], esi
test bh, bh
mov eax, dword [0x101d8c20]
sub eax, dword [0x101d8c1c]
sar eax, 2
test esi, esi
test al, al
xor ecx, ecx
cmp eax, esi
jle 0x100392b7
mov edx, dword [0x101d8c1c]
jmp 0x100392a0
cmp dword [edx + ecx*4], 0x14dbb7d6
je 0x100392b1
add ecx, ebx
cmp ecx, eax
jl 0x100392a0
jmp 0x100392b7
mov dword [esp + 0x44], ebx
test ebx, ebx
mov ebx, ebx
xor ebx, ebx
cmp edi, esi
mov dword [esp + 0x40], ebx
jle 0x10039d39
test dh, dh
test ah, ah
mov eax, dword [0x100b0314]
mov dword [esp + 0x8c], eax
mov eax, eax
xor ebp, ebp
cmp eax, esi
jle 0x100394bd
mov dword [esp + 0x14], 0x100b0320
jmp 0x100392f0
mov bl, bl
test eax, 0x202b
mov ecx, dword [esp + 0x14]
mov edi, dword [0x101d8c1c]
xor edx, edx
add ecx, 0x14
mov eax, dword [ecx]
cmp eax, esi
je 0x100394a8
cmp dword [edi + ebx*4], eax
je 0x10039325
add edx, 1
add ecx, 4
cmp edx, 4
jl 0x10039306
jmp 0x100394a8
cmp dword [esp + 0x218], esi
je 0x100393d6
mov eax, dword [esp + 0x14]
cmp dword [eax], 1
jne 0x100393d6
mov ecx, eax
cmp dword [ecx + 4], 1
jne 0x100393d6
call fcn.1004d1e0
test ch, ch
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], esi
mov dword [esp + 0x210], 1
test ecx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1004d700
test al, al
mov ah, ah
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
push edx
mov eax, ebp
mov edx, 0x100b0318
call fcn.100364e0
add esp, 4
test dl, dl
call fcn.1004dce0
push ecx
pop ecx
lea eax, [esp + 0xc0]
push eax
call fcn.10036c20
add esp, 4
mov edi, edi
mov dword [esp + 0x210], 0xffffffff
lea ecx, [esp + 0xc0]
call fcn.10025a90
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
cmp dword [ecx], esi
jne 0x100394a8
call fcn.1004d1e0
mov al, al
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x210], 3
test eax, 0x7a31
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1004d700
test al, al
test ch, ch
mov dword [esp + 0x3c], esi
test edx, edx
mov dword [esp + 0x38], esi
mov al, al
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
lea edi, [esp + 0x44]
lea ebx, [esp + 0x48]
mov eax, ebp
mov edx, 0x100b0318
call fcn.100363a0
add esp, 0xc
test dh, dh
call fcn.1004dce0
test bl, bl
mov edi, edi
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
sub edx, eax
xor edi, edi
sar edx, 2
je 0x1003948e
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esp, [esp]
mov eax, dword [eax + edi*4]
test eax, eax
push eax
call ebx
test ah, ah
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
sub ecx, eax
add edi, 1
sar ecx, 2
cmp edi, ecx
jb 0x10039470
test eax, eax
mov dword [esp + 0x210], 0xffffffff
lea ecx, [esp + 0x74]
call fcn.10025a90
mov ebx, dword [esp + 0x40]
add dword [esp + 0x14], 0x44
add ebp, 1
cmp ebp, dword [esp + 0x8c]
jl 0x100392f0
mov eax, dword [0x100b00dc]
mov dword [esp + 0x8c], eax
test bh, bh
xor ebp, ebp
cmp eax, esi
jle 0x100396d0
mov dword [esp + 0x14], 0x100b00e8
lea ecx, [ecx]
test al, al
push ecx
pop ecx
mov ecx, dword [esp + 0x14]
mov edi, dword [0x101d8c1c]
xor edx, edx
add ecx, 0x14
mov eax, dword [ecx]
cmp eax, esi
je 0x100396bb
cmp dword [edi + ebx*4], eax
je 0x10039512
add edx, 1
add ecx, 4
cmp edx, 4
jl 0x100394f3
jmp 0x100396bb
cmp dword [esp + 0x218], esi
je 0x100395f3
mov eax, dword [esp + 0x14]
cmp dword [eax], 1
jne 0x100395f3
cmp dword [eax + 4], 1
jne 0x100395f3
call fcn.1004d1e0
mov dh, dh
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], esi
mov dword [esp + 0x210], 5
nop
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1004d700
test al, al
push ebx
pop ebx
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
push edx
mov eax, ebp
mov edx, 0x100b00e0
call fcn.100364e0
add esp, 4
mov edx, edx
call fcn.1004dce0
xchg ebx, eax
xchg ebx, eax
mov edi, edi
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
sub ecx, eax
xor edi, edi
sar ecx, 2
je 0x100395d6
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [eax + edi*4]
test eax, eax
push eax
call ebx
test ah, ah
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x9c]
sub edx, eax
add edi, 1
sar edx, 2
cmp edi, edx
jb 0x100395b2
mov esi, esi
mov dword [esp + 0x210], 0xffffffff
lea ecx, [esp + 0x9c]
call fcn.10025a90
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
cmp dword [eax], esi
jne 0x100396bb
call fcn.1004d1e0
test ah, ah
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x210], 7
test edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1004d700
test al, al
mov esi, esi
mov dword [esp + 0x30], esi
test ecx, ecx
mov dword [esp + 0x20], esi
test edx, edx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push ecx
push edx
push eax
lea edi, [esp + 0x2c]
lea ebx, [esp + 0x3c]
mov eax, ebp
mov edx, 0x100b00e0
call fcn.100363a0
add esp, 0xc
mov ebx, ebx
call fcn.1004dce0
push ecx
pop ecx
mov edi, edi
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
sub ecx, eax
xor edi, edi
sar ecx, 2
je 0x100396a1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [eax + edi*4]
test eax, eax
push eax
call ebx
test ah, ah
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
sub edx, eax
add edi, 1
sar edx, 2
cmp edi, edx
jb 0x10039683
xchg ebx, eax
xchg ebx, eax
mov dword [esp + 0x210], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.10025a90
mov ebx, dword [esp + 0x40]
add dword [esp + 0x14], 0x44
add ebp, 1
cmp ebp, dword [esp + 0x8c]
jl 0x100394e0
mov eax, dword [0x100b0364]
mov dword [esp + 0x8c], eax
mov dl, dl
xor ebp, ebp
cmp eax, esi
jle 0x100398fc
mov dword [esp + 0x14], 0x100b0370
push ebx
pop ebx
test edi, edi
mov ecx, dword [esp + 0x14]
mov edi, dword [0x101d8c1c]
xor edx, edx
add ecx, 0x14
mov eax, dword [ecx]
cmp eax, esi
je 0x100398e7
cmp dword [edi + ebx*4], eax
je 0x10039722
add edx, 1
add ecx, 4
cmp edx, 4
jl 0x10039703
jmp 0x100398e7
cmp dword [esp + 0x218], esi
je 0x10039804
mov eax, dword [esp + 0x14]
cmp dword [eax], 1
jne 0x10039804
cmp dword [eax + 4], 1
jne 0x10039804
call fcn.1004d1e0
test bl, bl
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
mov dword [esp + 0x210], 9
test edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1004d700
test al, al
mov edi, edi
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
push eax
mov eax, ebp
mov edx, 0x100b0368
call fcn.100364e0
add esp, 4
mov ch, ch
call fcn.1004dce0
mov ecx, ecx
mov edi, edi
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
sub ecx, eax
xor edi, edi
sar ecx, 2
je 0x100397e7
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [eax + edi*4]
test eax, eax
push eax
call ebx
test ah, ah
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
sub edx, eax
add edi, 1
sar edx, 2
cmp edi, edx
jb 0x100397c3
mov ch, ch
mov dword [esp + 0x210], 0xffffffff
lea ecx, [esp + 0x90]
call fcn.10025a90
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
cmp dword [eax], esi
jne 0x100398e7
call fcn.1004d1e0
mov edx, edx
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x210], 0xb
push edx
pop edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1004d700
test al, al
mov ch, ch
mov dword [esp + 0x18], esi
test al, al
mov dword [esp + 0x28], esi
mov al, al
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push ecx
push edx
push eax
lea edi, [esp + 0x34]
lea ebx, [esp + 0x24]
mov eax, ebp
mov edx, 0x100b0368
call fcn.100363a0
add esp, 0xc
test al, al
call fcn.1004dce0
test ah, ah
mov edi, edi
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
sub ecx, eax
xor edi, edi
sar ecx, 2
je 0x100398c7
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [eax + edi*4]
test eax, eax
push eax
call ebx
test ah, ah
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
sub edx, eax
add edi, 1
sar edx, 2
cmp edi, edx
jb 0x100398a3
test eax, 0x749a
mov dword [esp + 0x210], 0xffffffff
lea ecx, [esp + 0x80]
call fcn.10025a90
mov ebx, dword [esp + 0x40]
add dword [esp + 0x14], 0x44
add ebp, 1
cmp ebp, dword [esp + 0x8c]
jl 0x100396f0
mov eax, dword [0x100afa68]
mov dword [esp + 0x8c], eax
mov ebx, ebx
xor ebp, ebp
cmp eax, esi
jle 0x10039b11
mov dword [esp + 0x14], 0x100af300
lea esp, [esp]
mov esi, esi
mov edi, edi
mov ecx, dword [esp + 0x14]
mov edi, dword [0x101d8c1c]
xor edx, edx
add ecx, 0x14
mov eax, dword [ecx]
cmp eax, esi
je 0x10039afc
cmp dword [edi + ebx*4], eax
je 0x10039952
add edx, 1
add ecx, 4
cmp edx, 4
jl 0x10039933
jmp 0x10039afc
cmp dword [esp + 0x218], esi
je 0x10039a34
mov eax, dword [esp + 0x14]
cmp dword [eax], 1
jne 0x10039a34
cmp dword [eax + 4], 1
jne 0x10039a34
call fcn.1004d1e0
mov al, al
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0x210], 0xd
mov edx, edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1004d700
test al, al
test esi, esi
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
push eax
mov eax, ebp
mov edx, 0x100af2f8
call fcn.100364e0
add esp, 4
test al, al
call fcn.1004dce0
test ebx, ebx
mov edi, edi
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
sub ecx, eax
xor edi, edi
sar ecx, 2
je 0x10039a17
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [eax + edi*4]
test eax, eax
push eax
call ebx
test ah, ah
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
sub edx, eax
add edi, 1
sar edx, 2
cmp edi, edx
jb 0x100399f3
push edx
pop edx
mov dword [esp + 0x210], 0xffffffff
lea ecx, [esp + 0xa8]
call fcn.10025a90
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
cmp dword [eax], esi
jne 0x10039afc
call fcn.1004d1e0
mov cl, cl
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x210], 0xf
mov ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1004d700
test al, al
mov ebp, ebp
mov dword [esp + 0x24], esi
mov bl, bl
mov dword [esp + 0x1c], esi
mov ch, ch
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push ecx
push edx
push eax
lea edi, [esp + 0x28]
lea ebx, [esp + 0x30]
mov eax, ebp
mov edx, 0x100af2f8
call fcn.100363a0
add esp, 0xc
mov ebp, ebp
call fcn.1004dce0
mov ah, ah
mov edi, edi
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
sub ecx, eax
xor edi, edi
sar ecx, 2
je 0x10039ae2
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [eax + edi*4]
test eax, eax
push eax
call ebx
test ah, ah
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
sub edx, eax
add edi, 1
sar edx, 2
cmp edi, edx
jb 0x10039ac4
mov edi, edi
mov dword [esp + 0x210], 0xffffffff
lea ecx, [esp + 0x5c]
call fcn.10025a90
mov ebx, dword [esp + 0x40]
add dword [esp + 0x14], 0x44
add ebp, 1
cmp ebp, dword [esp + 0x8c]
jl 0x10039920
mov eax, dword [0x100b03f4]
mov dword [esp + 0x8c], eax
test dl, dl
xor ebp, ebp
cmp eax, esi
jle 0x10039d25
mov dword [esp + 0x14], 0x100b0400
mov ch, ch
test bh, bh
mov ecx, dword [esp + 0x14]
mov edi, dword [0x101d8c1c]
xor edx, edx
add ecx, 0x14
mov eax, dword [ecx]
cmp eax, esi
je 0x10039d10
cmp dword [edi + ebx*4], eax
je 0x10039b63
add edx, 1
add ecx, 4
cmp edx, 4
jl 0x10039b44
jmp 0x10039d10
cmp dword [esp + 0x218], esi
je 0x10039c45
mov eax, dword [esp + 0x14]
cmp dword [eax], 1
jne 0x10039c45
cmp dword [eax + 4], 1
jne 0x10039c45
call fcn.1004d1e0
test esi, esi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], esi
mov dword [esp + 0x210], 0x11
test ah, ah
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1004d700
test al, al
mov esi, esi
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
push eax
mov eax, ebp
mov edx, 0x100b03f8
call fcn.100364e0
add esp, 4
mov al, al
call fcn.1004dce0
xchg ebx, eax
xchg ebx, eax
mov edi, edi
mov ecx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
sub ecx, eax
xor edi, edi
sar ecx, 2
je 0x10039c28
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [eax + edi*4]
test eax, eax
push eax
call ebx
test ah, ah
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
sub edx, eax
add edi, 1
sar edx, 2
cmp edi, edx
jb 0x10039c04
test al, al
mov dword [esp + 0x210], 0xffffffff
lea ecx, [esp + 0xb4]
call fcn.10025a90
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
cmp dword [eax], esi
jne 0x10039d10
call fcn.1004d1e0
push edx
pop edx
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x210], 0x13
push ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1004d700
test al, al
test bh, bh
mov dword [esp + 0x34], esi
mov dl, dl
mov dword [esp + 0x2c], esi
test al, al
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push ecx
push edx
push eax
lea edi, [esp + 0x38]
lea ebx, [esp + 0x40]
mov eax, ebp
mov edx, 0x100b03f8
call fcn.100363a0
add esp, 0xc
test edi, edi
call fcn.1004dce0
test eax, 0x55bd
mov edi, edi
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
sub ecx, eax
xor edi, edi
sar ecx, 2
je 0x10039cf6
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [eax + edi*4]
test eax, eax
push eax
call ebx
test ah, ah
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
sub edx, eax
add edi, 1
sar edx, 2
cmp edi, edx
jb 0x10039cd8
push edx
pop edx
mov dword [esp + 0x210], 0xffffffff
lea ecx, [esp + 0x68]
call fcn.10025a90
mov ebx, dword [esp + 0x40]
add dword [esp + 0x14], 0x44
add ebp, 1
cmp ebp, dword [esp + 0x8c]
jl 0x10039b31
add ebx, 1
cmp ebx, dword [esp + 0xe8]
mov dword [esp + 0x40], ebx
jl 0x100392c7
call fcn.10036e80
test ah, ah
mov eax, 1
mov ecx, dword [esp + 0x208]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1f0]
xor ecx, esp
call fcn.1005df84
add esp, 0x200
ret