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

Disassembly:
push 0xffffffffffffffff
push 0x10162b61
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x101b629c]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b629c]
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.10046cb0
add esp, 0x18
test eax, eax
jne 0x1004a439
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.100097c0
jmp 0x1004a89e
push 0x1772
call fcn.100ff166
push 0x1772
mov dword [esp + 0x1c], eax
call fcn.100ff166
add esp, 8
cmp dword [esp + 0x14], ebx
mov edi, eax
mov dword [esp + 0x18], edi
je 0x1004a874
cmp edi, ebx
mov eax, dword [esp + 0x14]
je 0x1004a871
push 0x1772
push ebx
push eax
call fcn.10100160
push 0x1772
push ebx
push edi
call fcn.10100160
xor edi, edi
add esp, 0x18
cmp dword [ebp + 0x23d0], ebx
mov dword [esp + 0x1c], edi
jle 0x1004a803
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 0x1016a690
push ecx
mov byte [esp + 0x58], bl
mov byte [esp + 0x78], bl
call fcn.10100f40
push esi
lea edx, [esp + 0x7c]
push 0x1016a690
push edx
call fcn.10100f40
add esp, 0x18
cmp edi, ebx
jne 0x1004a579
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x4c]
mov ecx, eax
sub edx, ecx
jmp 0x1004a550
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x1004a550
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 0x1004a568
jmp 0x1004a7f0
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 0x1004a663
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 0x1004a7f0
mov edi, dword [esp + 0x14]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x1004a5d0
mov cx, word [0x1016a5a8]
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 0x1004a5f0
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 0x1004a604
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 0x1004a623
mov dx, word [0x1016a5a8]
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 0x1004a640
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 0x1004a654
jmp 0x1004a7de
mov esi, dword [ebp + 0x3c8]
add esi, ecx
add esi, eax
cmp edx, esi
jle 0x1004a713
mov edi, dword [esp + 0x14]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x1004a680
mov ax, word [0x1016a5a8]
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 0x1004a6a0
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 0x1004a6b4
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 0x1004a6d3
mov cx, word [0x1016a5a8]
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 0x1004a6f0
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 0x1004a704
jmp 0x1004a7de
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 0x1004a7f0
mov edi, dword [esp + 0x14]
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x1004a750
mov dx, word [0x1016a5a8]
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 0x1004a770
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 0x1004a784
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 0x1004a7a3
mov ax, word [0x1016a5a8]
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 0x1004a7c0
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 0x1004a7d4
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 0x1004a4a0
mov edi, dword [esp + 0x14]
cmp byte [edi], bl
je 0x1004a858
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1004a810
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x38]
call fcn.100098e0
push 1
push 0x1016a58c
lea ecx, [esp + 0x38]
call fcn.100098e0
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1004a840
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x38]
call fcn.100098e0
jmp 0x1004a85c
mov esi, dword [esp + 0x18]
push edi
call fcn.100ff229
push esi
call fcn.100ff229
mov esi, dword [esp + 0x34]
add esp, 8
jmp 0x1004a881
push eax
jmp 0x1004a879
cmp edi, ebx
je 0x1004a881
push edi
call fcn.100ff229
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.100097c0
mov dword [esp + 0x20], 1
mov byte [esp + 0x98], bl
cmp dword [esp + 0x48], 0x10
jb 0x1004a8c1
mov edx, dword [esp + 0x34]
push edx
call fcn.100ee0d8
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.100ff704
add esp, 0x88
ret