Function at 0x50904c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0x44]
mov edx, dword [0x543550]
call fcn.00403e38
xor eax, eax
push ebp
push 0x5095b4
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0048c8fc
mov esi, eax
mov eax, dword [0x66fa6c]
cmp dword [eax + 4], 0
jne 0x50956e
call fcn.005477f8
mov edx, dword [0x66fa6c]
mov dword [edx + 4], eax
test bl, bl
jne 0x5090d6
mov eax, esi
call fcn.0048dacc
mov ebx, eax
mov edx, 0x5095cc
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
lea eax, [ebp - 0xc]
push eax
xor ecx, ecx
mov edx, 0x5095dc
mov eax, ebx
call fcn.00617a64
mov eax, dword [ebp - 0xc]
call fcn.0040351c
push eax
mov eax, dword [ebp - 0xc]
call fcn.004036e0
mov edx, eax
lea eax, [ebp - 0x44]
pop ecx
call fcn.0054b378
mov eax, dword [0x66e8a8]
or dword [eax + 4], 0x200
cmp dword [ebp - 0xc], 0
je 0x50911c
lea edx, [ebp - 0x44]
mov eax, dword [0x66fa6c]
mov eax, dword [eax + 4]
call fcn.00597f78
test al, al
jne 0x50944b
lea ecx, [ebp - 0x24]
mov edx, 0x5095e8
mov eax, 0x5095e8
call fcn.00656f9c
lea eax, [ebp - 0xc]
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
mov edx, dword [ebp - 0x24]
call fcn.00403358
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ebx
lea edx, [ebp - 0x44]
mov eax, dword [0x66fa6c]
mov eax, dword [eax + 4]
call fcn.00597f78
mov eax, dword [0x66edcc]
cmp dword [eax], 0
je 0x509177
mov eax, dword [0x66fc50]
cmp byte [eax + 0x1a], 0
je 0x509177
mov al, 0xa
call fcn.0048cc68
test al, al
jne 0x5091b3
mov eax, dword [0x66edcc]
cmp dword [eax], 0
jne 0x509195
mov dl, 1
mov eax, dword [0x510758]
call fcn.00402898
mov edx, dword [0x66edcc]
mov dword [edx], eax
mov eax, dword [0x66edcc]
mov eax, dword [eax]
call fcn.005111e8
mov eax, dword [0x66f364]
mov byte [eax + 0x11], 1
mov eax, dword [0x66f364]
mov byte [eax + 0x13], 1
mov dword [ebp - 0x18], 1
mov eax, dword [0x66f7e0]
mov dword [ebp - 0x2c], eax
push 0x5095f8
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx]
call fcn.00403438
push dword [ebp - 0x54]
push 0x50960c
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.004035dc
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.00654c74
mov ecx, dword [ebp - 0x4c]
mov edx, dword [0x66f7d4]
mov edx, dword [edx + 4]
lea eax, [ebp - 0x48]
call fcn.00403b14
mov edx, dword [ebp - 0x48]
mov eax, dword [0x66edcc]
mov eax, dword [eax]
mov eax, dword [eax + 4]
call fcn.00511030
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x509432
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
cmp dword [eax + 0x24], 0
jle 0x509432
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [0x66fa6c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x604]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jle 0x50928b
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 1
mov eax, dword [0x66fa6c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x604]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [eax + edx*4]
call fcn.00561d24
test al, al
jne 0x509283
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x1c]
dec dword [ebp - 0x28]
jne 0x50925c
mov dl, 1
mov eax, dword [0x647024]
call fcn.00402898
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x24]
dec eax
test eax, eax
jl 0x50942a
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0
xor eax, eax
push ebp
push 0x509414
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax + edx*4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x24]
lea eax, [ebp - 0x48]
call fcn.00403b14
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 8]
call fcn.00649204
mov ecx, dword [0x66fa6c]
mov ecx, dword [ecx + 4]
mov dl, 1
mov eax, dword [0x54268c]
call fcn.0055fd9c
mov esi, eax
call fcn.0042db2c
mov ebx, dword [esi + 0xc]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 4]
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebx + 0x38]
call fcn.0061dab8
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.0061cd68
mov eax, dword [ebx + 0x38]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
push 1
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.0055df3c
mov eax, dword [ebx + 0x38]
mov edx, dword [eax]
call dword [edx + 0x28]
mov edx, eax
shl eax, 4
sub eax, edx
mov edx, dword [esi + 0x24]
mov dword [edx + 0x2c], eax
mov eax, dword [ebx + 0x38]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, eax
shl eax, 4
sub eax, edx
mov edx, dword [esi + 0x24]
mov dword [edx + 0x30], eax
mov byte [ebx + 0x49], 0
mov byte [ebx + 0x4a], 1
mov eax, dword [0x66fa6c]
mov eax, dword [eax + 4]
mov edx, esi
call fcn.005f7e30
mov eax, dword [0x66fa6c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x604]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
call fcn.005477cc
mov edi, eax
lea ebx, [edi + 0x14]
mov dword [ebx + 8], esi
mov ax, word [ebx + 0x68]
mov edx, dword [0x66ffe8]
cmp ax, word [edx]
je 0x5093ef
mov ax, word [ebx + 0x6a]
mov edx, dword [0x66ffe8]
cmp ax, word [edx]
je 0x5093ef
jmp 0x5093d5
sub word [ebx + 0x68], 0x5a
add word [ebx + 0x6a], 0x5a
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 0x2c]
mov edx, 0x69
call fcn.0061f000
movsx edx, word [ebx + 0x68]
neg edx
cmp eax, edx
jg 0x5093cb
mov eax, dword [0x66fa6c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x604]
mov ecx, edi
mov edx, dword [ebp - 0x14]
call fcn.0064ea48
inc dword [ebp - 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50941e
inc dword [ebp - 0x1c]
dec dword [ebp - 0x28]
jne 0x5092b7
mov eax, dword [ebp - 8]
call fcn.004028c0
add dword [ebp - 0x2c], 4
dec dword [ebp - 0x18]
jne 0x5091c2
mov eax, dword [0x66e8a8]
and dword [eax + 4], 0xfffffdff
mov eax, dword [0x66fa6c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xb0]
call fcn.0064ea3c
cmp dword [eax + 8], 0
jne 0x509470
mov ecx, 2
mov dl, 0x17
call fcn.0055161c
mov bl, 3
mov esi, dword [0x66fa6c]
add esi, 8
mov eax, dword [esi]
call fcn.0064e930
add esi, 4
dec bl
jne 0x50947b
mov eax, dword [0x66fa6c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x604]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jl 0x5094f8
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [0x66fa6c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x604]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [eax + edx*4]
call fcn.00561d24
and eax, 0x7f
mov edx, dword [0x66fa6c]
mov eax, dword [edx + eax*4 + 8]
mov edx, dword [0x66fa6c]
mov edx, dword [edx + 4]
mov edx, dword [edx + 0x604]
mov edx, dword [edx + 0x1c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [edx + ecx*4]
call fcn.0064e9dc
inc dword [ebp - 0x1c]
dec dword [ebp - 0x28]
jne 0x5094aa
mov bl, 3
mov eax, dword [0x66e8a8]
add eax, 0x50
mov esi, dword [0x66fa6c]
add esi, 8
mov edx, dword [eax]
mov ecx, dword [esi]
cmp edx, dword [ecx + 0x18]
jl 0x509518
xor edx, edx
mov dword [eax], edx
add esi, 4
add eax, 4
dec bl
jne 0x50950b
mov bl, 3
mov esi, dword [0x66fa6c]
add esi, 8
mov eax, dword [esi]
cmp dword [eax + 0x18], 0
jne 0x509567
mov eax, dword [0x66fa6c]
add eax, 4
call fcn.00652f6c
mov eax, dword [0x66e8a8]
xor edx, edx
mov dword [eax + 0x50], edx
mov eax, dword [0x66e8a8]
xor edx, edx
mov dword [eax + 0x54], edx
mov eax, dword [0x66e8a8]
xor edx, edx
mov dword [eax + 0x58], edx
mov al, 1
call fcn.0050904c
add esi, 4
dec bl
jne 0x50952d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5095bb
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.00403298
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.00403898
lea eax, [ebp - 0x44]
mov edx, dword [0x543550]
call fcn.00403f00
lea eax, [ebp - 0x10]
call fcn.00403880
lea eax, [ebp - 0xc]
call fcn.00403274
ret