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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1003fca6
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
add eax, 0x128
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
sub edx, ecx
add edx, 3
and edx, 0xfffffffc
add edx, ecx
mov dword [eax + 8], edx
mov eax, dword [esi + 8]
test eax, eax
je 0x1003a54f
mov edi, dword [esi]
push eax
mov ecx, esi
add edi, 0x128
call fcn.10032840
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 4]
mov edx, dword [esi + 8]
sub ecx, ebx
sub ecx, eax
mov dword [edx + 4], ecx
mov ecx, dword [esi]
mov edx, 0x108
add ecx, 0x128
call fcn.1002e0c0
mov edx, dword [esp + 0x80]
mov dword [esi + 8], eax
mov dword [eax + 4], 0
mov eax, dword [esi + 8]
mov dword [eax], 0xf
mov ebp, dword [esi + 8]
mov cl, byte [edx + 0x20]
xor eax, eax
mov byte [esp + 0x13], cl
lea edi, [ebp + 8]
mov ecx, 0x40
mov dword [esp + 0x18], ebp
rep stosd dword es:[edi], eax
mov edi, dword [edx + 4]
mov edx, dword [edx + 8]
cmp edi, edx
mov dword [esp + 0x1c], edx
je 0x1003a601
xor edx, edx
mov bl, byte [esi + 0xc]
test bl, bl
je 0x1003a5c2
mov eax, dword [esi + 4]
mov ecx, edx
and ecx, 0xff
mov eax, dword [eax]
mov al, byte [ecx + eax + 0x104]
jmp 0x1003a5c4
mov al, dl
mov cl, byte [edi]
test bl, bl
mov byte [esp + 0x14], cl
je 0x1003a5e4
mov ecx, dword [esi + 4]
mov ebx, dword [esp + 0x14]
and ebx, 0xff
mov ecx, dword [ecx]
mov cl, byte [ebx + ecx + 0x104]
cmp al, cl
jne 0x1003a5ed
mov byte [edx + ebp + 8], 1
inc edx
cmp edx, 0x100
jb 0x1003a5a5
mov eax, dword [esp + 0x1c]
add edi, 2
cmp edi, eax
jne 0x1003a5a3
mov edx, dword [esp + 0x80]
mov ebp, dword [edx + 0x14]
mov eax, dword [edx + 0x18]
cmp ebp, eax
mov dword [esp + 0x2c], eax
je 0x1003a7d3
mov edi, dword [0x10040170]
mov al, byte [esi + 0xc]
mov cl, byte [ebp]
test al, al
mov byte [esp + 0x1c], cl
je 0x1003a644
mov edx, dword [esi + 4]
mov ecx, dword [edx]
mov edx, dword [esp + 0x1c]
and edx, 0xff
mov cl, byte [edx + ecx + 0x104]
mov bl, byte [ebp + 2]
add ebp, 2
test al, al
mov byte [esp + 0x24], cl
mov byte [esp + 0x20], bl
je 0x1003a66c
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x20]
and edx, 0xff
mov eax, dword [eax]
mov bl, byte [edx + eax + 0x104]
mov eax, dword [esi]
add ebp, 2
mov byte [esp + 0x28], bl
test dword [eax + 8], 0x200000
je 0x1003a782
mov byte [esp + 0x14], cl
lea ecx, [esp + 0x15]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 0x64]
push edx
push eax
mov byte [esp + 0x21], 0
call fcn.10025fe0
lea ecx, [esp + 0x15]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 0x54]
push edx
push eax
mov dword [esp + 0x84], 0
mov byte [esp + 0x20], bl
call fcn.10025fe0
lea ecx, [esp + 0x50]
lea edx, [esp + 0x60]
push ecx
push edx
mov byte [esp + 0x80], 1
call dword [0x10040164]
add esp, 8
test al, al
jne 0x1003a950
xor ebx, ebx
lea eax, [esp + 0x15]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x44]
push ecx
mov ecx, dword [esi + 4]
push edx
mov byte [esp + 0x20], bl
call fcn.10025fe0
lea eax, [esp + 0x40]
lea ecx, [esp + 0x60]
push eax
push ecx
mov byte [esp + 0x80], 2
call edi
add esp, 8
test al, al
je 0x1003a741
lea edx, [esp + 0x50]
lea eax, [esp + 0x40]
push edx
push eax
call edi
add esp, 8
test al, al
je 0x1003a741
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 8]
mov byte [eax + ebx], 1
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x7c], 1
call dword [0x10040148]
inc ebx
cmp ebx, 0x100
jb 0x1003a6ed
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x7c], 0
call dword [0x10040148]
push 1
lea ecx, [esp + 0x64]
mov dword [esp + 0x7c], 0xffffffff
call dword [0x10040148]
jmp 0x1003a7c2
cmp bl, cl
jb 0x1003aae6
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
and edx, 0xff
and ecx, 0xff
mov eax, 0x1010101
sub ecx, edx
lea edi, [edx + edi + 8]
inc ecx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [0x10040170]
cmp ebp, dword [esp + 0x2c]
jne 0x1003a620
mov edx, dword [esp + 0x80]
mov ecx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, dword [ecx + 8]
test ecx, 0x100000
je 0x1003a7fc
mov ecx, dword [esi + 0x30]
mov edi, ecx
and edi, eax
cmp edi, ecx
je 0x1003a7f9
mov ecx, dword [esi + 0x34]
mov edi, ecx
and edi, eax
cmp edi, ecx
jne 0x1003a7fc
or eax, dword [esi + 0x38]
test eax, eax
je 0x1003a852
mov ebx, eax
xor ecx, ecx
and ebx, 0x3ff
test ebx, ebx
je 0x1003a82d
mov edx, dword [esi + 4]
mov edi, ecx
and edi, 0xff
mov edx, dword [edx]
mov dx, word [edx + edi*2 + 0x204]
and edx, eax
test edx, 0x3ff
jne 0x1003a837
test ah, 4
je 0x1003a842
cmp cl, 0x5f
jne 0x1003a842
mov edx, dword [esp + 0x18]
add edx, 8
mov byte [edx + ecx], 1
inc ecx
cmp ecx, 0x100
jb 0x1003a80a
mov edx, dword [esp + 0x80]
mov eax, dword [esi]
mov ecx, dword [edx + 0x28]
test dword [eax + 8], 0x100000
je 0x1003a879
mov eax, dword [esi + 0x30]
mov edx, eax
and edx, ecx
cmp edx, eax
je 0x1003a876
mov eax, dword [esi + 0x34]
mov edx, eax
and edx, ecx
cmp edx, eax
jne 0x1003a879
or ecx, dword [esi + 0x38]
test ecx, ecx
je 0x1003a8c6
mov ebx, ecx
xor eax, eax
and ebx, 0x3ff
test ebx, ebx
je 0x1003a8aa
mov edx, dword [esi + 4]
mov edi, eax
and edi, 0xff
mov edx, dword [edx]
mov dx, word [edx + edi*2 + 0x204]
and edx, ecx
test edx, 0x3ff
jne 0x1003a8be
test ch, 4
je 0x1003a8b3
cmp al, 0x5f
je 0x1003a8be
mov edx, dword [esp + 0x18]
add edx, 8
mov byte [edx + eax], 1
inc eax
cmp eax, 0x100
jb 0x1003a887
mov eax, dword [esp + 0x80]
mov ebp, dword [eax + 0x34]
mov eax, dword [eax + 0x38]
cmp ebp, eax
mov dword [esp + 0x2c], eax
je 0x1003aa7f
xor edi, edi
mov al, byte [esp + 0x80]
mov dword [esp + 0x34], edi
mov byte [esp + 0x30], al
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
lea ecx, [ebp + 1]
lea edx, [esp + 0x60]
push ecx
mov ecx, dword [esi + 4]
push ebp
push edx
mov dword [esp + 0x84], 3
call fcn.10026010
mov ecx, dword [0x10040150]
mov byte [esp + 0x78], 4
mov edx, dword [ecx]
lea ecx, [esp + 0x30]
push edx
push edi
push eax
call dword [0x1004015c]
mov eax, dword [esp + 0x64]
mov byte [esp + 0x78], 3
cmp eax, edi
je 0x1003a985
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1003a97c
cmp al, 0xff
je 0x1003a97c
dec al
mov byte [ecx], al
jmp 0x1003a985
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x7c], 0
call dword [0x10040148]
push 1
lea ecx, [esp + 0x64]
mov dword [esp + 0x7c], 0xffffffff
call dword [0x10040148]
xor eax, eax
jmp 0x1003aaab
push ecx
call fcn.1002cda0
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x64], edi
cmp eax, edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
je 0x1003aac0
xor ebx, ebx
lea eax, [esp + 0x81]
lea ecx, [esp + 0x80]
push eax
lea edx, [esp + 0x44]
push ecx
mov ecx, dword [esi + 4]
push edx
mov byte [esp + 0x8c], bl
mov byte [esp + 0x8d], 0
call fcn.10026010
lea eax, [esp + 0x40]
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x80], 5
call dword [0x10040168]
add esp, 8
test al, al
je 0x1003a9f5
mov edx, dword [esp + 0x18]
lea eax, [edx + 8]
mov byte [eax + ebx], 1
mov eax, dword [esp + 0x44]
mov byte [esp + 0x78], 3
cmp eax, edi
je 0x1003aa1f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1003aa16
cmp al, 0xff
je 0x1003aa16
dec al
mov byte [ecx], al
jmp 0x1003aa1f
push ecx
call fcn.1002cda0
add esp, 4
inc ebx
mov dword [esp + 0x44], edi
cmp ebx, 0x100
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
jb 0x1003a99f
mov ecx, dword [esp + 0x34]
add ebp, 2
cmp ecx, edi
mov dword [esp + 0x78], 0xffffffff
je 0x1003aa67
mov al, byte [ecx - 1]
test al, al
je 0x1003aa5d
cmp al, 0xff
je 0x1003aa5d
dec al
mov byte [ecx - 1], al
jmp 0x1003aa67
dec ecx
push ecx
call fcn.1002cda0
add esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], edi
cmp ebp, eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
jne 0x1003a8e1
mov al, byte [esp + 0x13]
mov esi, dword [esp + 0x18]
test al, al
je 0x1003aaa9
mov ecx, 0xfffffff8
lea eax, [esi + 8]
sub ecx, esi
cmp byte [eax], 0
sete dl
mov byte [eax], dl
inc eax
lea edx, [ecx + eax]
cmp edx, 0x100
jb 0x1003aa95
mov eax, esi
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 8
mov ecx, dword [esp + 0x34]
cmp ecx, edi
je 0x1003aae6
mov al, byte [ecx - 1]
test al, al
je 0x1003aadc
cmp al, 0xff
je 0x1003aadc
dec al
mov byte [ecx - 1], al
xor eax, eax
jmp 0x1003aaab
dec ecx
push ecx
call fcn.1002cda0
add esp, 4
xor eax, eax
jmp 0x1003aaab