Function at 0x496120
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x56e6bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov eax, dword [0x5d2d10]
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
lea ecx, [edi + 4]
mov dword [ecx], eax
mov edx, dword [0x5d2d10]
lea ebp, [edi + 8]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [ebp], edx
mov edx, dword [0x5d2d10]
mov dword [edi + 0xc], edx
lea ebx, [edi + 0x30]
mov dword [ebx], method.CCommandLineInfo.virtual_0
mov dword [ebx + 4], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov esi, dword [esp + 0x38]
mov byte [esp + 0x30], 3
mov dword [edi], method.CCommandLineInfo.virtual_0
lea eax, [esi + 4]
push eax
call fcn.00530cc8
lea ecx, [esi + 8]
push ecx
mov ecx, ebp
call fcn.00530cc8
lea edx, [esi + 0xc]
lea ecx, [edi + 0xc]
push edx
call fcn.00530cc8
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x14]
mov dword [edi + 0x10], eax
lea edx, [edi + 0x14]
mov eax, dword [ecx]
push 0xffffffffffffffff
mov dword [edx], eax
push 0
mov cx, word [ecx + 4]
mov word [edx + 4], cx
mov edx, dword [esi + 0x1c]
mov dword [edi + 0x1c], edx
mov eax, dword [esi + 0x20]
mov dword [edi + 0x20], eax
mov ecx, dword [esi + 0x24]
mov dword [edi + 0x24], ecx
mov edx, dword [esi + 0x28]
mov dword [edi + 0x28], edx
mov eax, dword [esi + 0x2c]
mov ecx, ebx
mov dword [edi + 0x2c], eax
call fcn.00410380
mov ecx, dword [esi + 0x38]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x18], eax
jle 0x496344
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx + eax*4]
mov eax, dword [ebx + 4]
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 8]
mov ebp, edx
mov dword [esp + 0x24], ebp
inc ebp
test ebp, ebp
jne 0x496235
test eax, eax
je 0x496228
push eax
call fcn.00531c29
add esp, 4
mov dword [ebx + 4], ebp
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x496322
test eax, eax
jne 0x49626a
lea edi, [ebp*4]
push edi
call fcn.00531c00
mov edx, eax
mov ecx, edi
mov dword [ebx + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0xc], ebp
jmp 0x49631b
mov ecx, dword [ebx + 0xc]
cmp ebp, ecx
jg 0x496289
cmp ebp, edx
jle 0x49631f
mov ecx, ebp
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x49631b
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4962b3
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4962a7
mov eax, 4
jmp 0x4962b3
cmp eax, 0x400
jle 0x4962b3
mov eax, 0x400
add eax, ecx
cmp ebp, eax
mov dword [esp + 0x10], eax
jl 0x4962c1
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x10]
lea ecx, [eax*4]
push ecx
call fcn.00531c00
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x20], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 8]
mov ecx, ebp
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
push eax
call fcn.00531c29
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x40]
add esp, 8
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], edx
mov edi, dword [esp + 0x14]
mov dword [ebx + 8], ebp
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [eax + edx*4], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4961fd
mov ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4