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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2f50
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [eax], 0
mov dword [ebp - 0x88], eax
mov eax, dword [esi + 0x90]
mov dword [ebp - 0x8c], ecx
lea ecx, [ecx + ecx*4]
mov eax, dword [eax]
cmp byte [eax + ecx*4], 0
lea edi, [eax + ecx*4]
mov dword [ebp - 0x1c], edi
jne 0x4826a4
mov eax, 0x80004005
jmp 0x482b39
mov ecx, dword [esi + 0x78]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test eax, eax
jne 0x482b39
mov ecx, dword [edi + 4]
test ecx, ecx
js 0x4826d3
mov eax, dword [esi + 0x7c]
mov eax, dword [eax + 0x24]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x3c]
shr eax, 4
and eax, 0xffffff01
jmp 0x4826ec
mov edx, dword [edi + 8]
test edx, edx
js 0x4826ea
mov eax, dword [esi + 0x8c]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
mov al, byte [eax + 0x1c]
jmp 0x4826ec
xor al, al
cmp byte [edi + 3], 0
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x18], al
je 0x482837
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x34]
movq qword [ebp - 0x34], xmm0
call fcn.00412560
mov byte [ebp - 4], 1
mov ecx, dword [edi + 8]
test ecx, ecx
js 0x48273a
mov eax, dword [esi + 0x8c]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x34]
add eax, 0x10
push eax
call fcn.004128e0
jmp 0x48276a
mov eax, dword [edi + 4]
test eax, eax
js 0x48276a
mov ecx, dword [esi + 0x7c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004653d0
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004128e0
mov byte [ebp - 4], 1
push dword [ebp - 0x28]
call fcn.004df97b
add esp, 4
push dword [ebp + 0x14]
mov ecx, dword [esi + 0x78]
push 1
push dword [ebp - 0x18]
mov eax, dword [ecx]
push dword [ebp - 0x34]
mov eax, dword [eax + 0x18]
call eax
mov esi, eax
test esi, esi
je 0x48279b
mov byte [ebp - 4], 0
push dword [ebp - 0x34]
call fcn.004df97b
add esp, 4
mov eax, esi
jmp 0x482b39
cmp byte [ebp - 0x84], 0
jne 0x482821
mov ecx, 0x20
call fcn.004131d0
mov esi, eax
test esi, esi
je 0x4827d6
xorps xmm0, xmm0
movdqu xmmword [esi], xmm0
movdqu xmmword [esi + 0x10], xmm0
mov dword [esi + 4], 0
mov dword [esi], vtable.CBufInStream.0
mov dword [esi + 0x1c], 0
jmp 0x4827d8
xor esi, esi
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4827e5
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov byte [ebp - 4], 3
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x482812
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x88]
mov dword [esi + 0x1c], 0
mov dword [eax], esi
mov byte [ebp - 4], 0
push dword [ebp - 0x34]
call fcn.004df97b
add esp, 4
xor eax, eax
jmp 0x482b39
push ecx
mov ecx, dword [esi + 0x7c]
lea eax, [ebp - 0x34]
push eax
call fcn.004653d0
mov edx, eax
mov edi, dword [ebp + 0x14]
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0x78]
push edi
push 0
push dword [ebp - 0x18]
mov eax, dword [ecx]
push dword [edx]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 4], 0
push dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
call fcn.004df97b
mov eax, dword [ebp - 0x18]
add esp, 4
test eax, eax
jne 0x482b39
cmp byte [ebp - 0x84], al
jne 0x482830
cmp byte [esi + 0xa2], al
je 0x4828d8
test edi, edi
je 0x482895
cmp edi, 1
jne 0x482830
mov ecx, 8
call fcn.004131d0
mov esi, eax
test esi, esi
je 0x4828c7
mov dword [esi + 4], 0
mov dword [esi], vtable.CStdInFileStream.0
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [ebp - 0x88]
mov dword [eax], esi
xor eax, eax
jmp 0x482b39
mov eax, dword [ebp - 0x88]
xor esi, esi
mov dword [eax], esi
xor eax, eax
jmp 0x482b39
mov ecx, 0x58
call fcn.004131d0
mov edi, eax
test edi, edi
je 0x482900
push 0x58
push 0
push edi
call fcn.004e3fe0
add esp, 0xc
mov ecx, edi
call fcn.0043de20
mov edi, eax
jmp 0x482902
xor edi, edi
mov dword [ebp - 0x18], edi
test edi, edi
je 0x48290f
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov byte [ebp - 4], 5
mov al, byte [esi + 0xa5]
mov byte [edi + 0x48], al
lea eax, [esi - 4]
test eax, eax
je 0x482928
lea eax, [esi + 0x1c]
jmp 0x48292a
xor eax, eax
mov dword [edi + 0x4c], eax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x8c]
mov dword [edi + 0x50], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x7c]
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
push dword [eax + 4]
lea eax, [ebp - 0x28]
push eax
call fcn.004653a0
push dword [ebp - 0x8c]
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 6
call fcn.00410af0
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x48]
call fcn.004109c0
mov eax, dword [esi + 0x7c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + 0x24]
mov ecx, dword [ecx + 4]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x30], 0
jne 0x482a1a
cmp dword [eax + 0x38], 0
jne 0x482a1a
movzx eax, byte [esi + 0xa0]
mov ecx, edi
push eax
push dword [ebp - 0x28]
call fcn.0046b330
test al, al
jne 0x482a6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x78]
mov edx, eax
push edx
mov dword [ebp - 0x88], edx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
cmp byte [esi + 0xa1], 0
mov dword [ebp - 0x1c], eax
je 0x4829f9
test eax, eax
je 0x4829e4
cmp eax, 1
jne 0x4829f9
mov esi, dword [ebp - 0x88]
test esi, esi
jle 0x482a4d
movzx esi, si
or esi, 0x80070000
jmp 0x482a4d
mov byte [ebp - 4], 5
push dword [ebp - 0x28]
call fcn.004df97b
add esp, 4
mov byte [ebp - 4], 0
mov ecx, dword [edi]
push edi
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
jmp 0x482b39
push 0x2200000
push 3
push 1
push 0
push dword [ebp - 0x28]
lea ecx, [edi + 0x18]
call fcn.00419d60
test al, al
jne 0x482a6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x78]
mov edx, eax
push edx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov esi, eax
mov byte [ebp - 4], 5
push dword [ebp - 0x28]
call fcn.004df97b
add esp, 4
mov byte [ebp - 4], 0
mov ecx, dword [edi]
push edi
call dword [ecx + 8]
mov eax, esi
jmp 0x482b39
cmp byte [esi + 0xa5], 0
je 0x482add
mov ecx, dword [edi + 0xc]
lea eax, [edi + 0xc]
lea edx, [ebp - 0x80]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x482add
cmp dword [ebp - 0x60], 1
jbe 0x482add
mov eax, dword [ebp - 0x78]
lea ecx, [esi + 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x40]
push eax
call fcn.00483640
mov ecx, eax
mov eax, dword [ebp - 0x84]
cmp eax, dword [esi + 0x2c]
jne 0x482add
mov eax, dword [ebp - 0x8c]
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ecx
cmp dword [esi + 0xa8], 0
je 0x482b0c
push 0x52328c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0xa8]
push 0x52328c
mov eax, dword [eax + 4]
mov byte [ecx + eax], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x88]
mov byte [ebp - 4], 5
push dword [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [eax], edi
call fcn.004df97b
add esp, 4
xor eax, eax
jmp 0x482b39
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004df96c
mov esp, ebp
pop ebp
ret 0x10