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

Disassembly:
push 0xffffffffffffffff
push 0x1003ff36
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp + 4]
xor esi, esi
mov dword [esp + 0x14], ebp
rep stosd dword es:[edi], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
lea eax, [esp + 0x48]
mov dword [esp + 0x17c], esi
push eax
call fcn.1003a3c0
add esp, 4
mov eax, dword [esp + 0x50]
mov byte [esp + 0x17c], 1
cmp eax, esi
je 0x1003d4dc
lea edx, [esp + 0x48]
lea ecx, [esp + 0x28]
call fcn.1003d7c0
mov ecx, dword [eax]
add eax, 4
mov dword [esp + 0x30], ecx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x180], 2
call fcn.1002d4e0
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x17c], 1
cmp ecx, esi
je 0x1003d3a0
call fcn.100188f0
cmp dword [esp + 0x30], esi
jne 0x1003d4e8
mov dl, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], dl
call dword [0x10040148]
mov edi, 0x100418ac
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x1c]
push ebx
call dword [0x10040158]
test al, al
je 0x1003d403
mov edi, dword [esp + 0x1c]
mov ecx, ebx
mov eax, ecx
mov esi, 0x100418ac
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call dword [0x10040134]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
mov byte [esp + 0x188], 3
call fcn.1002cdac
add esp, 0xc
mov esi, eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x17c], 4
push ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x2c], 0x10047afc
call dword [0x100401e8]
mov dl, byte [esi]
push 0
lea ecx, [esp + 0x68]
mov byte [esp + 0x180], 5
mov byte [esp + 0x68], dl
call dword [0x10040148]
mov eax, dword [0x10040150]
mov ecx, dword [eax]
push ecx
push 0
push esi
lea ecx, [esp + 0x70]
call dword [0x1004015c]
mov edx, dword [0x100400ac]
mov dword [esp + 0x58], edx
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x180], 7
call dword [0x10040148]
lea ecx, [esp + 0x58]
call fcn.1003c9f0
mov eax, dword [0x100400ac]
mov dword [esp + 0x58], eax
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0x180], 8
call dword [0x10040148]
lea ecx, [esp + 0x58]
mov byte [esp + 0x17c], 3
call dword [0x100401e4]
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x180], 1
call dword [0x10040148]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1003d634
mov bl, 1
mov dword [esp + 0x28], 1
mov cl, bl
call fcn.1003cf80
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x3c], cl
lea ecx, [esp + 0x3c]
mov esi, eax
call dword [0x10040148]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x3c]
push ebp
call dword [0x10040158]
test al, al
je 0x1003d54d
mov edi, dword [esp + 0x3c]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
call dword [0x10040134]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x38]
mov byte [esp + 0x17c], 9
mov edx, dword [edi]
push eax
push ecx
push edx
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x24]
call fcn.1003d8a0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x180], 0xb
call dword [0x10040148]
mov ecx, dword [esp + 0x20]
xor ebp, ebp
xor esi, esi
cmp ecx, ebp
jbe 0x1003d5e1
cmp ecx, esi
jb 0x1003d5cb
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x1003d5cb
mov dl, byte [eax - 1]
test dl, dl
je 0x1003d5bb
cmp dl, 0xff
je 0x1003d5bb
push ebp
push ecx
lea ecx, [esp + 0x20]
call dword [0x10040158]
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x1003d5c7
mov byte [eax - 1], 0xff
mov eax, dword [esp + 0x1c]
add eax, esi
jmp 0x1003d5d0
mov eax, dword [0x1004014c]
xor ecx, ecx
inc esi
mov cl, byte [eax]
mov byte [ecx + edi + 4], bl
mov ecx, dword [esp + 0x20]
cmp ecx, esi
ja 0x1003d597
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x17c], 1
cmp eax, ebp
je 0x1003d60e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1003d605
cmp al, 0xff
je 0x1003d605
dec al
mov byte [ecx], al
jmp 0x1003d60e
push ecx
call fcn.1002cda0
add esp, 4
mov ecx, dword [esp + 0x28]
inc bl
inc ecx
cmp bl, 0x39
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ecx
jb 0x1003d4f2
mov ebp, dword [esp + 0x14]
jmp 0x1003d65b
mov bl, 1
mov cl, bl
call fcn.1003cf80
test eax, eax
je 0x1003d654
mov cl, byte [eax]
test cl, cl
je 0x1003d654
and ecx, 0xff
inc eax
mov byte [ecx + ebp + 4], bl
jne 0x1003d641
inc bl
cmp bl, 0x39
jb 0x1003d636
mov bl, 0x41
lea edi, [ebp + 0x45]
mov byte [esp + 0x14], bl
cmp byte [edi], 0
jne 0x1003d699
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp]
push esi
mov edx, 2
call fcn.1003dd00
test al, al
je 0x1003d684
mov byte [edi], 0x16
jmp 0x1003d699
mov ecx, dword [ebp]
push esi
mov edx, 1
call fcn.1003dd00
test al, al
je 0x1003d699
mov byte [edi], 0x17
mov dl, bl
inc bl
inc edi
cmp dl, 0xff
mov byte [esp + 0x14], bl
jne 0x1003d664
xor esi, esi
xor eax, eax
mov byte [esp + eax + 0x74], al
inc eax
cmp eax, 0x100
jl 0x1003d6ab
mov ecx, dword [ebp]
lea edi, [ebp + 0x104]
push 0x100
push edi
lea eax, [esp + 0x7c]
push 0x100
push eax
push 0x100
push ecx
call dword [0x10040028]
cmp eax, 0x100
jge 0x1003d6ee
mov byte [edi + eax], al
inc eax
cmp eax, 0x100
jl 0x1003d6e3
mov ecx, dword [ebp]
lea edx, [ebp + 0x204]
push edx
lea eax, [esp + 0x78]
push 0x100
push eax
push 1
push ecx
call dword [0x1004000c]
mov ecx, dword [esp + 0x4c]
cmp ecx, esi
je 0x1003d72e
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x1003d725
cmp al, 0xff
je 0x1003d725
dec al
mov byte [ecx], al
jmp 0x1003d72e
push ecx
call fcn.1002cda0
add esp, 4
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x34]
test esi, esi
mov dword [esp + 0x17c], 0xffffffff
je 0x1003d77d
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
mov ecx, eax
test ecx, ecx
jne 0x1003d77d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
mov edx, ecx
test edx, edx
jne 0x1003d77d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x170
ret