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

Disassembly:
push 0xffffffffffffffff
push 0x101817b0
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101cd7b4]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0xa0]
mov eax, dword [esi + 4]
test eax, eax
jne 0x1004b712
xor ebp, ebp
mov dword [esp + 0x18], ebp
jmp 0x1004b723
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 3
movzx edx, cx
mov dword [esp + 0x18], edx
mov ebp, edx
test bp, bp
mov byte [esp + 0x16], 0
jne 0x1004b734
xor al, al
jmp 0x1004bd1f
cmp byte [esp + 0xa8], 0
jne 0x1004b747
movzx eax, bp
add dword [edi + 0x284], eax
lea ecx, [ebp*8 + 0xc]
movzx eax, cx
mov dword [esp + 0x1c], eax
movzx eax, ax
lea edx, [esp + 0x17]
push edx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1f], 0
mov dword [esp + 0x2c], eax
call fcn.1000afa0
mov ebx, dword [esp + 0x2c]
test ebx, ebx
mov dword [esp + 0x98], 0
je 0x1004b78b
mov eax, dword [esp + 0x30]
sub eax, ebx
jne 0x1004b790
call fcn.10158fad
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [edi + 0x19c], ebx
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
push ecx
mov dword [ebx + 0x10], eax
call dword [0x101993cc]
cmp byte [esp + 0xa8], 0
mov edx, dword [edi + 0x19c]
mov word [edx], ax
mov eax, dword [edi + 0x19c]
mov byte [eax + 2], 5
mov ecx, dword [edi + 0x19c]
mov byte [ecx + 3], 0x4e
jne 0x1004b916
push 0
push 0x101997a1
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], 0xf
mov dword [esp + 0x8c], 0
mov byte [esp + 0x7c], 0
call fcn.10005630
push 0
push 0x101997a1
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa0], 1
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
call fcn.10005630
push 0
push 0x101997a1
lea ecx, [esp + 0x40]
mov byte [esp + 0xa0], 2
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
call fcn.10005630
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x58]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
push 0xea60
push 0xa
mov byte [esp + 0xb4], 3
call fcn.10028a50
add esp, 0x1c
mov ecx, eax
call fcn.10021d10
push eax
call dword [0x101993cc]
mov edx, dword [edi + 0x19c]
mov word [edx + 4], ax
cmp dword [esp + 0x50], 0x10
jb 0x1004b8b7
mov eax, dword [esp + 0x3c]
push eax
call fcn.10158c57
add esp, 4
cmp dword [esp + 0x6c], 0x10
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
jb 0x1004b8e0
mov ecx, dword [esp + 0x58]
push ecx
call fcn.10158c57
add esp, 4
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
mov byte [esp + 0x98], 0
jb 0x1004b928
mov edx, dword [esp + 0x74]
push edx
call fcn.10158c57
add esp, 4
jmp 0x1004b928
mov eax, dword [edi + 0x19c]
mov cx, word [esp + 0xa4]
mov word [eax + 4], cx
mov edx, dword [edi + 0x7c]
push edx
call dword [0x101993ac]
mov ecx, dword [edi + 0x19c]
push ebp
mov dword [ecx + 6], eax
call dword [0x101993cc]
test bp, bp
mov edx, dword [edi + 0x19c]
mov word [edx + 0xa], ax
jbe 0x1004babd
movzx eax, bp
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1004b971
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x1004b976
call fcn.10158fad
mov eax, dword [esi + 4]
lea ebp, [ebx*8]
mov ecx, dword [eax + ebp]
add eax, ebp
push ecx
call dword [0x101993ac]
mov edx, dword [edi + 0x19c]
mov dword [edx + ebp + 0xc], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1004b9a9
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x1004b9ae
call fcn.10158fad
mov eax, dword [esi + 4]
add eax, ebp
movzx eax, word [eax + 4]
push eax
call dword [0x101993cc]
mov ecx, dword [edi + 0x19c]
mov word [ecx + ebp + 0x10], ax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1004b9dc
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x1004b9e1
call fcn.10158fad
mov eax, dword [esi + 4]
movzx edx, word [eax + ebp + 6]
add eax, ebp
push edx
call dword [0x101993cc]
cmp byte [esp + 0xa8], 0
mov ecx, dword [edi + 0x19c]
mov word [ecx + ebp + 0x12], ax
jne 0x1004ba77
mov ecx, dword [esi + 4]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
je 0x1004ba30
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x1004ba35
call fcn.10158fad
mov ecx, dword [esi + 4]
test ecx, ecx
mov dword [esp + 0x20], ecx
je 0x1004ba4c
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x1004ba51
call fcn.10158fad
mov ecx, dword [edi + 0x50]
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
push 0
push 0
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x2c]
movzx eax, word [eax + ebp + 4]
push eax
mov eax, dword [esi + 4]
mov eax, dword [eax + ebp]
push eax
push 5
call edx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1004ba8a
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x1004ba8f
call fcn.10158fad
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1004baa2
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 3
cmp ebx, eax
jb 0x1004baa7
call fcn.10158fad
add ebx, 1
sub dword [esp + 0x1c], 1
jne 0x1004b95e
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
cmp byte [edi + 0x2a8], 1
jne 0x1004bb3c
movzx eax, bp
cmp eax, dword [edi + 0x2b0]
jl 0x1004bb3c
cmp dword [edi + 0x2bc], 2
jae 0x1004bb3c
mov ecx, dword [edi + 0x19c]
movzx edx, word [ecx + 4]
mov dword [esp + 0x20], edx
call dword [0x1019907c]
mov dword [esp + 0x38], eax
xor eax, eax
mov word [esp + 0x3c], bp
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [edi + 0x2b4]
mov byte [esp + 0x9c], 4
call fcn.10049f50
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x40]
mov dword [eax], ecx
push edx
lea ecx, [eax + 8]
mov word [eax + 4], bp
call fcn.10046930
mov byte [esp + 0x98], 0
mov edx, dword [esp + 0x24]
mov ecx, dword [edi + 0x4c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
push edx
mov edx, dword [edi + 0x19c]
push edx
call eax
test al, al
je 0x1004bd0e
cmp byte [esp + 0xa8], 0
jne 0x1004bd09
mov ecx, dword [edi + 0x2c8]
movzx eax, bp
imul ecx, eax
mov dword [esp + 0x18], eax
shl ecx, 0xa
mov eax, 0x51eb851f
mul ecx
mov ebx, edx
mov edx, dword [edi + 0x2e0]
shr ebx, 5
push ebx
push 0
push edx
call fcn.1010c0fc
add esp, 8
mov ecx, eax
call fcn.1010b6e9
mov eax, dword [edi + 0x2e0]
push ebx
push 2
push eax
call fcn.1010c0fc
add esp, 8
mov ecx, eax
call fcn.1010b6e9
cmp dword [edi + 0x2e0], 0
jbe 0x1004bbea
push ebx
push 0
push 0
call fcn.1010c0fc
add esp, 8
mov ecx, eax
call fcn.1010b6e9
push ebx
push 2
push 0
call fcn.1010c0fc
add esp, 8
mov ecx, eax
call fcn.1010b6e9
mov ecx, dword [edi + 0x19c]
movzx eax, word [ecx + 4]
movzx eax, ax
lea ecx, [esp + 0x70]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call fcn.10046d90
mov ebx, eax
lea edx, [esp + 0x24]
lea ecx, [edi + 0x29c]
push edx
mov byte [esp + 0x9c], 5
mov dword [esp + 0x20], ecx
call fcn.1004b2e0
mov edi, eax
push ebx
mov ecx, edi
call fcn.10046a60
mov al, byte [ebx + 0x10]
add ebx, 0x14
lea ecx, [edi + 0x14]
cmp ecx, ebx
mov byte [edi + 0x10], al
je 0x1004bc53
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x24]
mov edx, dword [eax]
push edi
push eax
push ebx
push edx
push ebx
call fcn.10046d30
lea ecx, [esp + 0x84]
mov byte [esp + 0x98], 0
call fcn.100452c0
mov eax, dword [esp + 0x74]
test eax, eax
je 0x1004bc78
push eax
call fcn.10158c57
add esp, 4
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x1c]
push edx
call fcn.1004b2e0
mov edi, eax
push esi
mov ecx, edi
call fcn.10046a60
and ebp, 0xfffe
cmp bp, 8
ja 0x1004bcaf
mov eax, dword [esp + 0x18]
shr eax, 1
cmp eax, 2
jl 0x1004bcb4
mov eax, 2
cmp eax, 1
jb 0x1004bd05
lea ebp, [edi + 0x14]
mov ebx, 0xfa
mov dword [esp + 0x1c], eax
call dword [0x1019907c]
mov esi, dword [ebp + 4]
mov ecx, dword [esi + 4]
add eax, ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push ecx
push esi
mov ecx, ebp
call fcn.10045100
push 1
mov ecx, ebp
mov edi, eax
call fcn.100458f0
mov dword [esi + 4], edi
mov edx, dword [edi + 4]
add ebx, 0xfa
sub dword [esp + 0x1c], 1
mov dword [edx], edi
jne 0x1004bcc5
mov ebx, dword [esp + 0x2c]
mov byte [esp + 0x16], 1
test ebx, ebx
je 0x1004bd1b
push ebx
call fcn.10158c57
add esp, 4
mov al, byte [esp + 0x16]
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0xc