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

Disassembly:
push 0xffffffffffffffff
push 0x10162ec1
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x101b7324]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b7324]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, dword [esp + 0xa0]
mov ebp, dword [esp + 0xa4]
mov eax, dword [esp + 0xb8]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov edi, 0xf
mov dword [esp + 0x2c], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov dword [esp + 0x98], 1
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
push eax
mov eax, dword [esp + 0xb8]
push eax
mov eax, dword [esp + 0xb0]
push ecx
push edx
push eax
push ebp
lea eax, [esp + 0x40]
lea ecx, [esp + 0x3c]
mov dword [ebp + 0x23d0], ebx
call fcn.10046c50
add esp, 0x18
test eax, eax
jne 0x1004a3d9
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x38]
push ecx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.10009790
jmp 0x1004a83e
push 0x1772
call fcn.100ff4c8
push 0x1772
mov dword [esp + 0x1c], eax
call fcn.100ff4c8
add esp, 8
cmp dword [esp + 0x14], ebx
mov edi, eax
mov dword [esp + 0x18], edi
je 0x1004a814
cmp edi, ebx
mov eax, dword [esp + 0x14]
je 0x1004a811
push 0x1772
push ebx
push eax
call fcn.101004d0
push 0x1772
push ebx
push edi
call fcn.101004d0
xor edi, edi
add esp, 0x18
cmp dword [ebp + 0x23d0], ebx
mov dword [esp + 0x1c], edi
jle 0x1004a7a3
lea ecx, [ecx]
movzx esi, word [ebp + edi*8 + 0x3d2]
xor eax, eax
add esi, dword [esp + 0x28]
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov word [esp + 0x69], ax
mov byte [esp + 0x6b], al
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov word [esp + 0x89], ax
mov byte [esp + 0x8b], al
movzx eax, word [ebp + edi*8 + 0x3d0]
add eax, dword [esp + 0x24]
lea ecx, [esp + 0x4c]
push eax
push 0x1016b6b8
push ecx
mov byte [esp + 0x58], bl
mov byte [esp + 0x78], bl
call fcn.101012b0
push esi
lea edx, [esp + 0x7c]
push 0x1016b6b8
push edx
call fcn.101012b0
add esp, 0x18
cmp edi, ebx
jne 0x1004a519
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x4c]
mov ecx, eax
sub edx, ecx
jmp 0x1004a4f0
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x1004a4f0
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x6c]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x1004a508
jmp 0x1004a790
movzx edx, word [ebp + edi*8 + 0x3ce]
movzx eax, word [ebp + edi*8 + 0x3ca]
mov ecx, dword [ebp + 0x7c]
add eax, edx
movzx edx, word [ebp + edi*8 + 0x3d2]
lea esi, [ecx + eax]
cmp edx, esi
jge 0x1004a603
movzx ecx, word [ebp + edi*8 + 0x3c8]
movzx edx, word [ebp + edi*8 + 0x3cc]
movzx eax, word [ebp + edi*8 + 0x3d0]
add ecx, edx
add ecx, dword [ebp + 0x3cc]
cmp eax, ecx
jle 0x1004a790
mov edi, dword [esp + 0x14]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x1004a570
mov cx, word [0x1016b5d0]
lea eax, [esp + 0x4c]
mov word [edi], cx
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1004a590
mov edi, dword [esp + 0x14]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x1004a5a4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x1004a5c3
mov dx, word [0x1016b5d0]
lea eax, [esp + 0x6c]
mov word [edi], dx
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1004a5e0
mov edi, dword [esp + 0x18]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x1004a5f4
jmp 0x1004a77e
mov esi, dword [ebp + 0x3c8]
add esi, ecx
add esi, eax
cmp edx, esi
jle 0x1004a6b3
mov edi, dword [esp + 0x14]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x1004a620
mov ax, word [0x1016b5d0]
mov word [edi], ax
lea eax, [esp + 0x4c]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1004a640
mov edi, dword [esp + 0x14]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x1004a654
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x1004a673
mov cx, word [0x1016b5d0]
lea eax, [esp + 0x6c]
mov word [edi], cx
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1004a690
mov edi, dword [esp + 0x18]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x1004a6a4
jmp 0x1004a77e
movzx edx, word [ebp + edi*8 + 0x3c8]
movzx eax, word [ebp + edi*8 + 0x3d0]
movzx ecx, word [ebp + edi*8 + 0x3cc]
sub eax, edx
sub eax, ecx
sub eax, dword [esp + 0x24]
add eax, dword [esp + 0xb0]
cmp eax, dword [ebp + 0x3cc]
jle 0x1004a790
mov edi, dword [esp + 0x14]
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x1004a6f0
mov dx, word [0x1016b5d0]
lea eax, [esp + 0x4c]
mov word [edi], dx
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1004a710
mov edi, dword [esp + 0x14]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x1004a724
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x1004a743
mov ax, word [0x1016b5d0]
mov word [edi], ax
lea eax, [esp + 0x6c]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1004a760
mov edi, dword [esp + 0x18]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x1004a774
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
add edi, 1
cmp edi, dword [ebp + 0x23d0]
mov dword [esp + 0x1c], edi
jl 0x1004a440
mov edi, dword [esp + 0x14]
cmp byte [edi], bl
je 0x1004a7f8
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1004a7b0
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x38]
call fcn.100098b0
push 1
push 0x1016b5b4
lea ecx, [esp + 0x38]
call fcn.100098b0
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1004a7e0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x38]
call fcn.100098b0
jmp 0x1004a7fc
mov esi, dword [esp + 0x18]
push edi
call fcn.100ff58b
push esi
call fcn.100ff58b
mov esi, dword [esp + 0x34]
add esp, 8
jmp 0x1004a821
push eax
jmp 0x1004a819
cmp edi, ebx
je 0x1004a821
push edi
call fcn.100ff58b
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x38]
mov edi, 0xf
push ecx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.10009790
mov dword [esp + 0x20], 1
mov byte [esp + 0x98], bl
cmp dword [esp + 0x48], 0x10
jb 0x1004a861
mov edx, dword [esp + 0x34]
push edx
call fcn.100ee438
add esp, 4
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov eax, esi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.100ffa66
add esp, 0x88
ret