Function at 0x48ff50
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4904f8
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x48ffad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0048ede0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48ffd0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 4]
movzx edx, byte [ebp - 9]
mov byte [eax + 0x34], dl
mov eax, dword [ebp - 4]
call fcn.0048f240
test al, al
je 0x4904c9
xor eax, eax
push ebp
push 0x490497
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
call fcn.0041520c
mov eax, dword [ebp - 4]
test byte [eax + 0x34], 1
setne cl
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0048bf4c
mov eax, dword [ebp - 4]
add eax, 0xd8
mov ecx, 8
mov edx, 0x1400
call fcn.0048b560
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
call fcn.0048eb94
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
cmp byte [eax + 0xc], 0
je 0x4900bd
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x80], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xec], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
call fcn.0048d668
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
call fcn.0048ea08
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
xor ecx, ecx
call fcn.0048c088
jmp 0x4900e3
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x80], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x84], 0x7fffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
call fcn.0048d668
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xdc], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xe0], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xe4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, 0x1000
call fcn.0048bc34
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
add eax, 0xb4
push eax
mov eax, dword [ebp - 4]
add eax, 0x40
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0048bf40
push eax
call fcn.0047a1e0
add esp, 0x14
test eax, eax
jg 0x490195
lea edx, [ebp - 0x2c]
mov eax, 0x48b3e8
call fcn.0040668c
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x407914]
call fcn.0040c528
call fcn.0040427c
cmp dword [ebp - 0x10], 0
jbe 0x490236
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
add dword [eax + 0x80], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x84], 0x7fffffff
jge 0x4901c6
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
sub dword [eax + 0x84], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp - 0x10]
call fcn.0048c178
test al, al
jne 0x4901f9
lea edx, [ebp - 0x30]
mov eax, 0x48b3e8
call fcn.0040668c
mov ecx, dword [ebp - 0x30]
mov dl, 1
mov eax, dword [0x407914]
call fcn.0040c528
call fcn.0040427c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, 0x5a1
call fcn.0048bc34
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
cmp dword [eax + 0x24], 4
jge 0x490236
lea edx, [ebp - 0x34]
mov eax, 0x48b3e8
call fcn.0040668c
mov ecx, dword [ebp - 0x34]
mov dl, 1
mov eax, dword [0x407914]
call fcn.0040c528
call fcn.0040427c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0048bf40
mov edx, dword [ebp - 4]
add edx, 0x74
mov ecx, 4
call fcn.00402e90
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0048bf40
mov edx, eax
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x40]
mov eax, dword [ebp - 4]
call fcn.0048f178
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jle 0x490287
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
dec eax
sub eax, 3
jb 0x4902a8
lea edx, [ebp - 0x38]
mov eax, 0x48b3e8
call fcn.0040668c
mov ecx, dword [ebp - 0x38]
mov dl, 1
mov eax, dword [0x407914]
call fcn.0040c528
call fcn.0040427c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
dec eax
je 0x4902b9
dec eax
je 0x4902c8
dec eax
je 0x4902d7
jmp 0x4902e6
mov eax, dword [ebp - 4]
mov dword [eax + 0xa8], 3
jmp 0x490307
mov eax, dword [ebp - 4]
mov dword [eax + 0xa8], 2
jmp 0x490307
mov eax, dword [ebp - 4]
mov dword [eax + 0xa8], 1
jmp 0x490307
lea edx, [ebp - 0x3c]
mov eax, 0x48b3e8
call fcn.0040668c
mov ecx, dword [ebp - 0x3c]
mov dl, 1
mov eax, dword [0x407914]
call fcn.0040c528
call fcn.0040427c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
sub eax, 1
jb 0x490316
je 0x490365
jmp 0x490374
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
dec eax
je 0x490324
dec eax
je 0x490333
jmp 0x490342
mov eax, dword [ebp - 4]
mov dword [eax + 0xac], 2
jmp 0x490395
mov eax, dword [ebp - 4]
mov dword [eax + 0xac], 3
jmp 0x490395
lea edx, [ebp - 0x40]
mov eax, 0x48b3e8
call fcn.0040668c
mov ecx, dword [ebp - 0x40]
mov dl, 1
mov eax, dword [0x407914]
call fcn.0040c528
call fcn.0040427c
jmp 0x490395
mov eax, dword [ebp - 4]
mov dword [eax + 0xac], 1
jmp 0x490395
lea edx, [ebp - 0x44]
mov eax, 0x48b3e8
call fcn.0040668c
mov ecx, dword [ebp - 0x44]
mov dl, 1
mov eax, dword [0x407914]
call fcn.0040c528
call fcn.0040427c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0048bc34
test al, al
jne 0x4903cb
lea edx, [ebp - 0x48]
mov eax, 0x48b3e8
call fcn.0040668c
mov ecx, dword [ebp - 0x48]
mov dl, 1
mov eax, dword [0x407914]
call fcn.0040c528
call fcn.0040427c
push 0
push 0
push 0
push 0x5dc0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
lea edx, [eax + 0x40]
mov eax, dword [ebp - 4]
call fcn.0048f258
test eax, eax
jne 0x49040f
lea edx, [ebp - 0x4c]
mov eax, 0x48b3e8
call fcn.0040668c
mov ecx, dword [ebp - 0x4c]
mov dl, 1
mov eax, dword [0x407914]
call fcn.0040c528
call fcn.0040427c
lea eax, [ebp - 0x28]
push eax
call fcn.0047f240
pop ecx
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xd4]
mov edx, dword [ebp - 0x20]
mov eax, ebx
call fcn.0048d090
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.0048d074
mov edx, dword [ebp - 0x28]
mov eax, ebx
call fcn.0048d084
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0xb0], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0xa4], edx
mov eax, dword [ebp - 0x24]
imul dword [ebp - 0x1c]
test eax, eax
jns 0x490465
add eax, 7
sar eax, 3
mov edx, dword [ebp - 4]
mov dword [edx + 0xe8], eax
mov eax, dword [ebp - 4]
call fcn.004906bc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
call fcn.00415184
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4904ae
push 0
xor ecx, ecx
mov edx, 0x410
mov eax, dword [ebp - 4]
call fcn.00490670
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00490dd4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
je 0x4904dd
mov eax, dword [ebp - 4]
call fcn.00490518
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4904ff
lea eax, [ebp - 0x4c]
mov edx, 9
call fcn.0040492c
ret