Function at 0x49a40c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49a930
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xa]
mov ecx, 2
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x1e]
mov ecx, 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x1f]
mov ecx, 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
mov dl, byte [ebp - 0x1f]
call fcn.0045778c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
mov dl, byte [ebp - 0x1e]
call fcn.0044740c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov edx, dword [ebp - 0x10]
call fcn.004653d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov edx, dword [ebp - 0x14]
call fcn.00465390
mov eax, dword [0x49ffb0]
mov eax, dword [eax]
call fcn.00425304
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.00458440
mov eax, dword [0x4a0404]
mov eax, dword [eax]
call fcn.00425304
mov edx, dword [ebp - 4]
mov dword [edx + 0x390], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
mov edx, dword [eax + 0x70]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
call fcn.00458440
mov ax, word [ebp - 0xa]
test ax, ax
jbe 0x49a86e
mov word [ebp - 0x28], ax
mov word [ebp - 0xc], 1
lea edx, [ebp - 0x1d]
mov ecx, 5
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004983d4
mov dl, 1
mov eax, dword [0x417fcc]
call fcn.004033b8
mov ebx, eax
mov eax, dword [ebp - 0x1d]
cdq
push edx
push eax
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0041c604
xor ecx, ecx
xor edx, edx
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x14]
mov dl, 1
mov eax, dword [0x424808]
call fcn.0042ac78
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x49a859
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov dl, 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, ebx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov dl, 1
mov eax, dword [ebp - 0x18]
call fcn.0042c1b4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x18]
call fcn.0042b32c
mov ecx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov edx, dword [ebp - 0x18]
call fcn.0046565c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x300]
mov dl, 1
mov eax, dword [0x43b9a0]
call fcn.0044551c
mov ebx, eax
xor eax, eax
mov al, byte [ebp - 0x19]
cmp eax, 0x10
ja case.0x49a620.0
jmp dword [eax*4 + 0x49a627]
mov eax, dword [ebp - 4]
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x120], fcn.00499bc0
jmp case.0x49a620.0
mov dl, 2
mov eax, ebx
call fcn.0044600c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x308]
mov eax, ebx
call fcn.00445e6c
jmp case.0x49a620.0
mov dl, 2
mov eax, ebx
call fcn.0044600c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x32c]
mov eax, ebx
call fcn.00445e6c
jmp case.0x49a620.0
mov eax, dword [ebp - 4]
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x120], fcn.0049ac68
jmp case.0x49a620.0
mov eax, dword [ebp - 4]
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x120], fcn.0049c734
jmp case.0x49a620.0
mov eax, dword [ebp - 4]
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x120], fcn.0049ac70
jmp case.0x49a620.0
mov eax, dword [ebp - 4]
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x120], fcn.0049c84c
jmp case.0x49a620.0
mov eax, dword [ebp - 4]
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x120], fcn.0049aca8
jmp case.0x49a620.0
mov eax, dword [ebp - 4]
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x120], fcn.0049bd88
jmp case.0x49a620.0
mov eax, dword [ebp - 4]
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x120], fcn.0049bea4
jmp case.0x49a620.0
mov eax, dword [ebp - 4]
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x120], fcn.0049c280
jmp case.0x49a620.0
mov dl, 1
mov eax, ebx
call fcn.0044600c
mov eax, dword [ebp - 4]
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x120], fcn.0049c288
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x360]
mov edx, dword [ebp - 4]
mov dword [eax + 0x31c], edx
mov dword [eax + 0x318], fcn.0049c288
jmp case.0x49a620.0
mov eax, dword [ebp - 4]
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x120], fcn.0049c6b4
jmp case.0x49a620.0
mov eax, dword [ebp - 4]
mov dword [eax + 0x364], ebx
mov eax, dword [ebp - 4]
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x120], fcn.0049c214
jmp case.0x49a620.0
mov eax, dword [ebp - 4]
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x120], 0x49c74c
jmp case.0x49a620.0
mov eax, dword [ebp - 4]
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x120], 0x49c784
movzx edx, word [ebp - 0xc]
dec edx
mov eax, ebx
call fcn.00445ea8
mov dl, 3
mov eax, ebx
call fcn.0045778c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x300]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov edx, dword [ebp - 0x24]
mov eax, ebx
call fcn.004582d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a860
mov eax, dword [ebp - 0x18]
call fcn.004033e8
ret
mov eax, dword [ebp - 4]
lea edx, [eax + 0x38c]
mov eax, dword [ebp - 8]
call fcn.004983d4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38c], 0
je 0x49a89d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
mov dx, 0xffeb
call fcn.004584ac
lea edx, [ebp - 0x25]
mov ecx, 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor eax, eax
mov al, byte [ebp - 0x25]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x304]
mov dword [edx + 0xc], eax
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp byte [ebp - 0x20], 0
je 0x49a91a
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x304]
mov eax, dword [ebp - 8]
call fcn.004982e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
mov edx, dword [eax + 0x30]
mov edx, dword [edx + 0x48]
sub edx, dword [eax + 0x48]
call fcn.004579e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
mov edx, dword [eax + 0x30]
mov edx, dword [edx + 0x4c]
sub edx, dword [eax + 0x4c]
sar edx, 1
jns 0x49a915
adc edx, 0
call fcn.00457a0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a937
lea eax, [ebp - 0x24]
call fcn.00404178
ret