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

Disassembly:
push 0xffffffffffffffff
push 0x10162fb1
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.10046c80
add esp, 0x18
test eax, eax
jne 0x1004a409
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 0x1004a86e
push 0x1772
call fcn.100ff548
push 0x1772
mov dword [esp + 0x1c], eax
call fcn.100ff548
add esp, 8
cmp dword [esp + 0x14], ebx
mov edi, eax
mov dword [esp + 0x18], edi
je 0x1004a844
cmp edi, ebx
mov eax, dword [esp + 0x14]
je 0x1004a841
push 0x1772
push ebx
push eax
call fcn.10100550
push 0x1772
push ebx
push edi
call fcn.10100550
xor edi, edi
add esp, 0x18
cmp dword [ebp + 0x23d0], ebx
mov dword [esp + 0x1c], edi
jle 0x1004a7d3
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.10101330
push esi
lea edx, [esp + 0x7c]
push 0x1016b6b8
push edx
call fcn.10101330
add esp, 0x18
cmp edi, ebx
jne 0x1004a549
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x4c]
mov ecx, eax
sub edx, ecx
jmp 0x1004a520
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x1004a520
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 0x1004a538
jmp 0x1004a7c0
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 0x1004a633
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 0x1004a7c0
mov edi, dword [esp + 0x14]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x1004a5a0
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 0x1004a5c0
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 0x1004a5d4
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 0x1004a5f3
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 0x1004a610
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 0x1004a624
jmp 0x1004a7ae
mov esi, dword [ebp + 0x3c8]
add esi, ecx
add esi, eax
cmp edx, esi
jle 0x1004a6e3
mov edi, dword [esp + 0x14]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x1004a650
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 0x1004a670
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 0x1004a684
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 0x1004a6a3
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 0x1004a6c0
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 0x1004a6d4
jmp 0x1004a7ae
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 0x1004a7c0
mov edi, dword [esp + 0x14]
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x1004a720
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 0x1004a740
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 0x1004a754
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 0x1004a773
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 0x1004a790
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 0x1004a7a4
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 0x1004a470
mov edi, dword [esp + 0x14]
cmp byte [edi], bl
je 0x1004a828
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1004a7e0
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 0x1004a810
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x38]
call fcn.100098b0
jmp 0x1004a82c
mov esi, dword [esp + 0x18]
push edi
call fcn.100ff60b
push esi
call fcn.100ff60b
mov esi, dword [esp + 0x34]
add esp, 8
jmp 0x1004a851
push eax
jmp 0x1004a849
cmp edi, ebx
je 0x1004a851
push edi
call fcn.100ff60b
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 0x1004a891
mov edx, dword [esp + 0x34]
push edx
call fcn.100ee4bd
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.100ffae6
add esp, 0x88
ret