Function at 0x50bbb8
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 [0x546508]
call fcn.00403e48
xor eax, eax
push ebp
push 0x50c120
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0048e078
mov esi, eax
mov eax, dword [0x672ad0]
cmp dword [eax + 4], 0
jne 0x50c0da
call fcn.0054a7b0
mov edx, dword [0x672ad0]
mov dword [edx + 4], eax
test bl, bl
jne 0x50bc42
mov eax, esi
call fcn.0048f240
mov ebx, eax
mov edx, 0x50c138
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
lea eax, [ebp - 0xc]
push eax
xor ecx, ecx
mov edx, 0x50c148
mov eax, ebx
call fcn.0061af9c
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.0054e330
mov eax, dword [0x671910]
or dword [eax + 4], 0x200
cmp dword [ebp - 0xc], 0
je 0x50bc88
lea edx, [ebp - 0x44]
mov eax, dword [0x672ad0]
mov eax, dword [eax + 4]
call fcn.0059af30
test al, al
jne 0x50bfb7
lea ecx, [ebp - 0x24]
mov edx, 0x50c154
mov eax, 0x50c154
call fcn.0065a5c8
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 [0x672ad0]
mov eax, dword [eax + 4]
call fcn.0059af30
mov eax, dword [0x671e34]
cmp dword [eax], 0
je 0x50bce3
mov eax, dword [0x672cb4]
cmp byte [eax + 0x1a], 0
je 0x50bce3
mov al, 0xa
call fcn.0048e3e4
test al, al
jne 0x50bd1f
mov eax, dword [0x671e34]
cmp dword [eax], 0
jne 0x50bd01
mov dl, 1
mov eax, dword [0x5132e8]
call fcn.00402898
mov edx, dword [0x671e34]
mov dword [edx], eax
mov eax, dword [0x671e34]
mov eax, dword [eax]
call fcn.00513dbc
mov eax, dword [0x6723cc]
mov byte [eax + 0x11], 1
mov eax, dword [0x6723cc]
mov byte [eax + 0x13], 1
mov dword [ebp - 0x18], 1
mov eax, dword [0x672844]
mov dword [ebp - 0x2c], eax
push 0x50c164
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx]
call fcn.00403438
push dword [ebp - 0x54]
push 0x50c178
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.004035dc
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.0065829c
mov ecx, dword [ebp - 0x4c]
mov edx, dword [0x67283c]
mov edx, dword [edx + 4]
lea eax, [ebp - 0x48]
call fcn.00403b24
mov edx, dword [ebp - 0x48]
mov eax, dword [0x671e34]
mov eax, dword [eax]
mov eax, dword [eax + 4]
call fcn.00513c04
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x50bf9e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
cmp dword [eax + 0x24], 0
jle 0x50bf9e
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [0x672ad0]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x604]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jle 0x50bdf7
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 1
mov eax, dword [0x672ad0]
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.00564cdc
test al, al
jne 0x50bdef
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x1c]
dec dword [ebp - 0x28]
jne 0x50bdc8
mov dl, 1
mov eax, dword [0x64a69c]
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 0x50bf96
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0
xor eax, eax
push ebp
push 0x50bf80
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.00403b24
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 8]
call fcn.0064c87c
mov ecx, dword [0x672ad0]
mov ecx, dword [ecx + 4]
mov dl, 1
mov eax, dword [0x545644]
call fcn.00562d54
mov esi, eax
call fcn.0042e378
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.00620ff0
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.006202a0
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.00560ef4
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 [0x672ad0]
mov eax, dword [eax + 4]
mov edx, esi
call fcn.005fadfc
mov eax, dword [0x672ad0]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x604]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
call fcn.0054a784
mov edi, eax
lea ebx, [edi + 0x14]
mov dword [ebx + 8], esi
mov ax, word [ebx + 0x68]
mov edx, dword [0x67304c]
cmp ax, word [edx]
je 0x50bf5b
mov ax, word [ebx + 0x6a]
mov edx, dword [0x67304c]
cmp ax, word [edx]
je 0x50bf5b
jmp 0x50bf41
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.00622538
movsx edx, word [ebx + 0x68]
neg edx
cmp eax, edx
jg 0x50bf37
mov eax, dword [0x672ad0]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x604]
mov ecx, edi
mov edx, dword [ebp - 0x14]
call fcn.006520a4
inc dword [ebp - 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50bf8a
inc dword [ebp - 0x1c]
dec dword [ebp - 0x28]
jne 0x50be23
mov eax, dword [ebp - 8]
call fcn.004028c0
add dword [ebp - 0x2c], 4
dec dword [ebp - 0x18]
jne 0x50bd2e
mov eax, dword [0x671910]
and dword [eax + 4], 0xfffffdff
mov eax, dword [0x672ad0]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xb0]
call fcn.00652098
cmp dword [eax + 8], 0
jne 0x50bfdc
mov ecx, 2
mov dl, 0x17
call fcn.005545d4
mov bl, 3
mov esi, dword [0x672ad0]
add esi, 8
mov eax, dword [esi]
call fcn.00651f8c
add esi, 4
dec bl
jne 0x50bfe7
mov eax, dword [0x672ad0]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x604]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jl 0x50c064
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [0x672ad0]
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.00564cdc
and eax, 0x7f
mov edx, dword [0x672ad0]
mov eax, dword [edx + eax*4 + 8]
mov edx, dword [0x672ad0]
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.00652038
inc dword [ebp - 0x1c]
dec dword [ebp - 0x28]
jne 0x50c016
mov bl, 3
mov eax, dword [0x671910]
add eax, 0x50
mov esi, dword [0x672ad0]
add esi, 8
mov edx, dword [eax]
mov ecx, dword [esi]
cmp edx, dword [ecx + 0x18]
jl 0x50c084
xor edx, edx
mov dword [eax], edx
add esi, 4
add eax, 4
dec bl
jne 0x50c077
mov bl, 3
mov esi, dword [0x672ad0]
add esi, 8
mov eax, dword [esi]
cmp dword [eax + 0x18], 0
jne 0x50c0d3
mov eax, dword [0x672ad0]
add eax, 4
call fcn.006565a4
mov eax, dword [0x671910]
xor edx, edx
mov dword [eax + 0x50], edx
mov eax, dword [0x671910]
xor edx, edx
mov dword [eax + 0x54], edx
mov eax, dword [0x671910]
xor edx, edx
mov dword [eax + 0x58], edx
mov al, 1
call fcn.0050bbb8
add esi, 4
dec bl
jne 0x50c099
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50c127
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 [0x546508]
call fcn.00403f10
lea eax, [ebp - 0x10]
call fcn.00403880
lea eax, [ebp - 0xc]
call fcn.00403274
ret