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

Disassembly:
push 0xffffffffffffffff
push 0x4bf95f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push esi
mov esi, ecx
mov ecx, dword [esp + 0x6c]
push edi
mov dword [esp + 0x2c], 0
call fcn.0047cdf0
mov ecx, dword [esp + 0x68]
mov edi, eax
mov dword [esp + 0x28], edi
call fcn.0047cdf0
mov dword [esp + 0x24], eax
cmp eax, edi
lea eax, [esp + 0x28]
jb 0x481bec
lea eax, [esp + 0x24]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x30], eax
jne 0x481c26
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov esi, dword [esp + 0x60]
push eax
mov ecx, esi
call fcn.0047dac0
pop edi
mov eax, esi
mov dword [esp + 0x28], 1
pop esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x54
ret 0x14
cmp eax, 0x2e
ja 0x481c36
mov ecx, 1
mov dword [esp + 0x10], ecx
jmp 0x481c4a
mov ecx, 0x104
cmp ecx, eax
sbb eax, eax
neg eax
add eax, 2
mov dword [esp + 0x10], eax
mov ecx, eax
push ebx
push ebp
mov ebp, 1
shl ebp, cl
mov eax, ebp
shl eax, cl
lea ecx, [esp + 0x48]
push eax
mov dword [esp + 0x18], eax
call fcn.00481890
mov dword [esp + 0x60], 1
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x6c]
add ecx, 0xc
push edi
mov dword [esp + 0x24], ecx
call fcn.0047dc40
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x74]
lea ebx, [ebp + ebp*2]
shl ebx, 2
lea ecx, [ebx + edx]
push eax
mov dword [esp + 0x28], ecx
call fcn.0047dc40
cmp dword [esp + 0x18], 1
mov edx, dword [esi]
jne 0x481cc6
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x4c]
push eax
push edi
mov ecx, esi
add ebx, 0x24
call dword [edx + 0xc]
push eax
mov ecx, ebx
call fcn.0047dc40
jmp 0x481f05
mov ecx, dword [esp + 0x4c]
add ecx, 0x18
mov dword [esp + 0x30], ecx
push edi
mov ecx, esi
call dword [edx + 0x18]
mov ecx, dword [esp + 0x30]
push eax
call fcn.0047dc40
mov eax, dword [esp + 0x4c]
mov edx, dword [esi]
lea edi, [ebp + ebp*2]
shl edi, 3
lea ecx, [edi + eax]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x2c], ecx
push eax
mov ecx, esi
mov dword [esp + 0x34], edi
call dword [edx + 0x18]
mov ecx, dword [esp + 0x2c]
push eax
call fcn.0047dc40
cmp ebp, 3
jbe 0x481d5e
mov ecx, dword [esp + 0x4c]
lea eax, [ebp - 4]
add ecx, 0x24
shr eax, 1
inc eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x4c]
mov edx, dword [esi]
add eax, 0x18
push eax
mov eax, dword [esp + 0x14]
add eax, 0xffffffe8
push eax
mov ecx, esi
call dword [edx + 0xc]
mov ecx, dword [esp + 0x10]
push eax
call fcn.0047dc40
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
add ecx, 0x18
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], eax
jne 0x481d27
mov eax, 1
cmp ebp, eax
mov dword [esp + 0x10], eax
jbe 0x481e05
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add ecx, 0xc
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x14]
lea edi, [eax + ebp]
cmp edi, ecx
jae 0x481ddd
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
lea ecx, [ecx]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi]
push eax
push ecx
mov ecx, esi
call dword [edx + 0xc]
mov ecx, dword [esp + 0x20]
push eax
call fcn.0047dc40
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
add edi, ebp
add edx, ebx
add ecx, ebx
cmp edi, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
jb 0x481da0
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ecx, 0x18
add eax, 2
add edi, ecx
add edx, ecx
cmp eax, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edx
jb 0x481d82
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
lea ebx, [ebp + ebp*2]
cmp ebx, eax
jae 0x481e6e
mov edx, dword [esp + 0x4c]
lea eax, [ebx + ebx*2]
lea eax, [edx + eax*4]
mov dword [esp + 0x28], eax
lea ecx, [ebp + ebp]
mov eax, ebx
sub eax, ecx
lea ecx, [eax + eax*2]
lea edx, [edx + ecx*4]
mov dword [esp + 0x74], edx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x74]
mov eax, dword [esi]
push ecx
push edx
mov ecx, esi
call dword [eax + 0xc]
mov ecx, dword [esp + 0x28]
push eax
call fcn.0047dc40
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x28]
lea eax, [ebp + ebp]
add ebx, eax
mov eax, dword [esp + 0x14]
add edx, edi
add ecx, edi
cmp ebx, eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x28], ecx
jb 0x481e31
cmp ebp, dword [esp + 0x14]
mov dword [esp + 0x10], ebp
jae 0x481f05
mov edx, dword [esp + 0x4c]
lea ecx, [ebp + ebp*2 + 6]
lea ecx, [edx + ecx*4]
mov edx, 2
lea eax, [ebp + ebp]
sub edx, ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x28], edx
mov edi, edi
lea ecx, [edx + eax]
cmp ecx, eax
jae 0x481edd
mov ebx, dword [esp + 0x74]
mov edi, eax
sub edi, ecx
dec edi
shr edi, 1
inc edi
mov eax, dword [esp + 0x6c]
mov edx, dword [esi]
push eax
lea ecx, [ebx - 0xc]
push ecx
mov ecx, esi
call dword [edx + 0xc]
push eax
mov ecx, ebx
call fcn.0047dc40
add ebx, 0x18
dec edi
jne 0x481eb3
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x10]
lea ecx, [ebp + ebp]
add ebx, ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x74]
add ebx, edi
add eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x74], ebx
cmp ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
jb 0x481ea0
lea ecx, [esp + 0x3c]
call fcn.0047cb10
mov byte [esp + 0x60], 2
mov eax, dword [esp + 0x38]
xor ebx, ebx
lea edi, [eax - 1]
cmp edi, ebx
lea edx, [eax - 1]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x30], edx
mov byte [esp + 0x74], 1
mov dword [esp + 0x28], edi
jl 0x482064
jmp 0x481f40
mov ecx, dword [esp + 0x70]
push edi
call fcn.0047cbf0
mov ecx, dword [esp + 0x6c]
movzx eax, al
lea edx, [eax + ecx*2]
mov ecx, dword [esp + 0x78]
push edi
mov dword [esp + 0x70], edx
call fcn.0047cbf0
test edi, edi
movzx eax, al
lea ebx, [eax + ebx*2]
mov eax, dword [esp + 0x6c]
je 0x481f82
lea ecx, [eax + eax]
cmp ecx, ebp
jae 0x481f82
lea edx, [ebx + ebx]
cmp edx, ebp
jb 0x482059
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
sub ecx, edi
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], edx
test eax, eax
jne 0x481f9e
test ebx, ebx
je 0x481faf
test al, 1
jne 0x481faf
test bl, 1
jne 0x481faf
shr eax, 1
shr ebx, 1
dec ecx
inc edi
jmp 0x481f96
mov dl, byte [esp + 0x74]
test dl, dl
mov dword [esp + 0x14], edi
mov dword [esp + 0x6c], eax
je 0x481fe2
mov ecx, dword [esp + 0x18]
shl ebx, cl
mov ecx, dword [esp + 0x4c]
add ebx, eax
lea eax, [ebx + ebx*2]
lea eax, [ecx + eax*4]
push eax
lea ecx, [esp + 0x40]
call fcn.0047dc40
mov byte [esp + 0x74], 0
jmp 0x482030
test ecx, ecx
je 0x482009
mov edi, ecx
mov edx, dword [esi]
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call dword [edx + 0x18]
push eax
lea ecx, [esp + 0x40]
call fcn.0047dc40
dec edi
jne 0x481fe8
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x482011
test ebx, ebx
je 0x482030
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x4c]
shl ebx, cl
add ebx, eax
lea ecx, [ebx + ebx*2]
lea eax, [edx + ecx*4]
mov edx, dword [esi]
push eax
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call dword [edx + 0x20]
test edi, edi
je 0x48204f
mov ebx, edi
mov edx, dword [esi]
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call dword [edx + 0x18]
push eax
lea ecx, [esp + 0x40]
call fcn.0047dc40
dec ebx
jne 0x482036
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x6c], ebx
dec edi
mov dword [esp + 0x28], edi
jns 0x481f40
mov ebp, dword [esp + 0x68]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebp
call fcn.0047dac0
mov dword [esp + 0x34], 1
mov byte [esp + 0x60], 1
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
xor eax, eax
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x40]
push edx
call fcn.0049e31e
add esp, 4
mov byte [esp + 0x60], 0
mov edi, dword [esp + 0x4c]
xor eax, eax
cmp edi, eax
je 0x4820cc
mov ebx, dword [esp + 0x50]
cmp edi, ebx
mov esi, edi
je 0x4820c1
mov ecx, esi
call fcn.00401c80
add esi, 0xc
cmp esi, ebx
jne 0x4820b3
push edi
call fcn.0049db86
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x54
ret 0x14