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

Disassembly:
push 0xffffffffffffffff
push 0x1004f630
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100682b0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100682b0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x78]
mov ebp, dword [esp + 0x80]
mov ebx, dword [esp + 0x84]
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], ecx
call fcn.10003e10
push eax
mov dword [esp + 0x64], 0
call fcn.100386f0
mov esi, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x60], 0xffffffff
test esi, esi
je 0x1003923a
push 0
lea ecx, [esp + 0x18]
call fcn.1002f03c
mov eax, dword [esi + 4]
test eax, eax
je 0x1003921a
cmp eax, 0xffffffff
jae 0x1003921a
dec eax
mov dword [esi + 4], eax
mov edi, dword [esi + 4]
neg edi
sbb edi, edi
lea ecx, [esp + 0x14]
not edi
call fcn.1002f064
and edi, esi
je 0x1003923a
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x38]
push eax
call fcn.100376c0
mov al, byte [ebp]
mov ecx, 1
mov dword [esp + 0x60], ecx
cmp al, 0x2b
je 0x1003927f
cmp al, 0x2d
je 0x1003927f
cmp al, 0x30
jne 0x10039275
mov al, byte [ebp + 1]
cmp al, 0x78
je 0x1003926b
cmp al, 0x58
jne 0x10039275
mov dword [esp + 0x14], 2
jmp 0x10039283
mov dword [esp + 0x14], 0
jmp 0x10039283
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
mov eax, edx
cmp ecx, 0x10
jae 0x10039296
lea eax, [esp + 0x38]
cmp byte [eax], 0x7f
je 0x1003930e
mov eax, edx
cmp ecx, 0x10
jae 0x100392a6
lea eax, [esp + 0x38]
cmp byte [eax], 0
jle 0x1003930e
cmp ecx, 0x10
jb 0x100392b6
mov dword [esp + 0x24], edx
jmp 0x100392be
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x24]
mov al, byte [edx]
mov esi, ebx
cmp al, 0x7f
je 0x1003930e
test al, al
jle 0x1003930e
mov ecx, esi
sub ecx, dword [esp + 0x14]
movsx eax, al
cmp eax, ecx
jae 0x1003930e
sub esi, eax
mov eax, ebx
sub eax, esi
inc eax
push eax
lea edi, [esi + ebp]
push edi
push eax
lea eax, [esi + ebp + 1]
push eax
call fcn.1001bada
mov eax, dword [esp + 0x34]
add esp, 0x10
mov byte [edi], 0
inc ebx
cmp byte [eax + 1], 0
jle 0x10039308
inc eax
mov dword [esp + 0x24], eax
mov al, byte [eax]
cmp al, 0x7f
jne 0x100392ca
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx + 0x20]
mov eax, ecx
cmp dword [eax + 0x24], 0
jl 0x1003932b
jg 0x10039323
test edi, edi
je 0x1003932b
cmp edi, ebx
jbe 0x1003932b
sub edi, ebx
jmp 0x1003932d
xor edi, edi
mov eax, dword [eax + 0x14]
mov esi, dword [esp + 0x68]
and eax, 0x1c0
cmp eax, 0x40
je 0x100393df
cmp eax, 0x100
je 0x10039379
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
push edi
push edx
push eax
push ecx
lea edx, [esp + 0x24]
push edx
push esi
call fcn.10036e40
mov ecx, dword [eax]
mov dword [esp + 0x88], ecx
mov edx, dword [eax + 4]
add esp, 0x18
mov dword [esp + 0x74], edx
jmp 0x100393dd
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
push eax
push ebp
push ecx
push edx
lea eax, [esp + 0x34]
push eax
push esi
call fcn.10036dd0
mov ecx, dword [eax]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + 4]
push edi
add ebp, ecx
sub ebx, ecx
mov ecx, dword [esp + 0x98]
push ecx
mov dword [esp + 0x94], edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
push esi
call fcn.10036e40
mov edx, dword [eax]
mov dword [esp + 0xa0], edx
mov eax, dword [eax + 4]
add esp, 0x30
mov dword [esp + 0x74], eax
xor edi, edi
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov edx, dword [esp + 0x74]
mov byte [esp + 0x20], al
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x70]
push ecx
push ebx
push ebp
push edx
push eax
lea ecx, [esp + 0x40]
push ecx
push esi
call fcn.10036eb0
mov ecx, dword [eax]
mov edx, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x90], ecx
mov eax, dword [eax + 4]
xor ebx, ebx
mov dword [edx + 0x20], ebx
mov dword [edx + 0x24], ebx
mov edx, dword [esp + 0x9c]
push edx
push eax
push ecx
push edi
push esi
mov dword [esp + 0xa8], eax
call fcn.10036e40
add esp, 0x34
cmp dword [esp + 0x4c], 0x10
jb 0x10039456
mov eax, dword [esp + 0x38]
push eax
call fcn.10019165
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10019170
add esp, 0x50
ret