Function at 0x419180
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x607786
mov eax, dword fs:[0]
push eax
sub esp, 0x230
push ebx
push esi
push edi
mov eax, dword [0x767500]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
lea ecx, [esp + 0x18]
call fcn.00424070
xor ebx, ebx
lea ecx, [esp + 0x44]
mov dword [esp + 0x248], ebx
call fcn.00412030
mov esi, dword [ebp + 8]
mov byte [esp + 0x248], 1
mov eax, dword [0x7f1068]
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x30], eax
mov eax, ecx
sub eax, dword [0x7f1064]
lea edx, [esi + 0x28]
add eax, dword [edx]
mov dword [esp + 0x34], edx
cdq
idiv ecx
mov eax, dword [esi]
add eax, 0x188
mov dword [esp + 0x30], ebx
mov dword [esi + 0x34], edx
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
test ecx, 0xfffffffc
jg 0x419277
lea ecx, [esp + 0x44]
mov byte [esp + 0x248], 0
call fcn.00412110
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x419235
push eax
call fcn.0055d56e
add esp, 4
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.0055d56e
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x30]
mov edi, dword [esi]
mov edx, dword [edi + 0x198]
sub edx, dword [edi + 0x194]
sar edx, 2
cmp ebx, edx
jb 0x419295
or edi, 0xffffffff
mov dword [esp + 0x14], edi
jmp 0x4192bc
mov eax, dword [edi + 0x198]
sub eax, dword [edi + 0x194]
sar eax, 2
cmp ebx, eax
jb 0x4192ad
call fcn.0055d9b4
mov ecx, dword [edi + 0x194]
mov edx, dword [ecx + ebx*4]
mov dword [esp + 0x14], edx
mov edi, edx
mov eax, edi
and eax, 0xffff0000
mov dword [esp + 0x38], eax
cmp eax, 0x10000000
je 0x419663
test eax, 0x20000
je 0x4193b7
mov edx, dword [esi]
mov eax, edi
sar eax, 8
and eax, 0xf
jl 0x4192f3
cmp eax, dword [edx + 0x44]
jge 0x4192f3
lea eax, [edx + eax*4]
jmp 0x4192f5
xor eax, eax
mov edi, dword [eax]
mov ecx, dword [edx + 0xc0]
mov esi, edi
sar esi, 4
xor ebx, ebx
and esi, 0x3f
xor eax, eax
cmp ecx, ebx
jle 0x419632
add edx, 0x5c
test dword [edx], 0xf0000
jne 0x419329
inc eax
add edx, 0x18
cmp eax, ecx
jl 0x419314
jmp 0x419632
and edi, 0x300
cmp edi, 0x300
jge 0x4196ba
mov edi, dword [ebp + 8]
lea ebx, [esi - 1]
mov edx, edi
call fcn.00419090
lea ebx, [esi + 1]
mov edx, edi
mov dword [esp + 0x10], eax
call fcn.00419090
mov ecx, dword [esp + 0x10]
add ecx, eax
jne 0x419632
cmp dword [edi + 0x2c], 2
jg 0x419381
cmp dword [edi + 0x38], 1
jne 0x419381
mov ecx, dword [edi]
cmp byte [ecx + 0x1d4], 0
jne 0x419381
push 1
push edi
call fcn.0041a590
lea ecx, [esp + 0x44]
mov byte [esp + 0x248], 0
call fcn.00412110
lea ecx, [esp + 0x18]
call fcn.0046eb80
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test eax, 0x10000
je 0x419497
mov esi, dword [esi]
mov eax, edi
sar eax, 8
and eax, 0xf
jl 0x4193d8
cmp eax, dword [esi + 0x44]
jge 0x4193d8
lea eax, [esi + eax*4]
jmp 0x4193da
xor eax, eax
mov edi, dword [eax]
mov edx, dword [ebp + 8]
mov esi, edi
sar esi, 4
mov ebx, esi
and ebx, 0x3f
mov dword [esp + 0x10], ebx
call fcn.00419090
cmp eax, 3
jge 0x419632
and edi, 0x300
and esi, 0xf
cmp edi, 0x300
jge 0x419442
cmp esi, 8
mov edi, 0x30
jge 0x419428
mov edx, dword [ebp + 8]
inc ebx
call fcn.00419090
test eax, eax
je 0x419428
mov edi, 0x20
test esi, esi
jle 0x41948b
mov ebx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
dec ebx
call fcn.00419090
test eax, eax
je 0x41948b
and edi, 0x20
jmp 0x41948b
cmp esi, 4
mov ebx, dword [ebp + 8]
jge 0x419462
cmp dword [ebx + 0x30], esi
je 0x419458
cmp dword [ebx + 0x34], esi
je 0x419462
xor edi, edi
jmp 0x41948b
mov edi, 2
cmp dword [ebx + 0x34], esi
je 0x419467
mov edi, 4
mov eax, dword [esp + 0x10]
push eax
mov edx, ebx
call fcn.004190d0
test eax, eax
je 0x41947c
mov edi, 1
mov edx, dword [ebx]
call fcn.00412720
test al, al
je 0x419381
mov ecx, dword [ebp + 8]
test dword [ecx + 0x3c], edi
jne 0x419381
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc0]
xor eax, eax
test edx, edx
jle 0x4194c0
add ecx, 0x5c
jmp 0x4194b0
test dword [ecx], 0xf0000
jne 0x4194d4
inc eax
add ecx, 0x18
cmp eax, edx
jl 0x4194b0
mov eax, dword [esi + 0x2c]
lea edx, [eax + eax*2]
add edx, edx
cmp dword [0x7f109c], edx
jge 0x419632
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ebx, ecx
cmp eax, ecx
jbe 0x4194ef
call fcn.0055d9b4
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov edi, eax
cmp eax, ecx
jbe 0x4194fe
call fcn.0055d9b4
mov eax, dword [esp + 0x18]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004245f0
mov edx, dword [esp + 0x34]
push edx
lea ecx, [esp + 0x1c]
call fcn.00424220
push 0x7eef40
lea esi, [esp + 0x1c]
call fcn.0041cf50
test al, al
je 0x419632
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x24]
sar eax, 2
test eax, eax
ja 0x41954c
call fcn.0055d9b4
mov ecx, dword [esp + 0x24]
cmp dword [ecx], 0
jne 0x419632
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
lea edi, [esp + 0x48]
call fcn.00414ab0
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, dword [ecx + 0xc0]
cmp eax, 5
jge 0x419632
lea edx, [eax + 1]
lea eax, [eax + eax*2 + 9]
mov dword [ecx + 0xc0], edx
lea ecx, [ecx + eax*8]
test ecx, ecx
je 0x419632
mov esi, dword [esp + 0x14]
sar esi, 8
and esi, 0xff
xor eax, eax
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4195b8
mov eax, dword [ecx + 0x10]
cmp eax, 4
jge 0x4195ec
mov edx, dword [ebp + 0xc]
jmp 0x4195e6
mov edx, dword [edi]
mov eax, esi
and eax, 0xf
sar esi, 4
test eax, eax
jl 0x4195d0
cmp eax, dword [edx + 0x44]
jge 0x4195d0
lea eax, [edx + eax*4]
jmp 0x4195d2
xor eax, eax
mov edx, dword [eax]
mov ebx, edx
or ebx, 0x80000000
mov dword [eax], ebx
mov eax, dword [ecx + 0x10]
cmp eax, 4
jge 0x4195ec
mov dword [ecx + eax*4], edx
inc dword [ecx + 0x10]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 3
mov dword [esp + 0x10], eax
jl 0x4195a7
mov eax, dword [esp + 0x38]
mov dword [ecx + 0x14], eax
mov esi, dword [edi]
call fcn.004126a0
call fcn.00418b30
mov esi, dword [edi]
lea ecx, [esp + 0x18]
push ecx
call fcn.00416600
mov edi, dword [edi]
test al, al
jne 0x419733
lea edx, [esp + 0x44]
push edx
call fcn.00414ab0
call fcn.00418b30
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [eax + 0x198]
sub edx, dword [eax + 0x194]
mov ecx, dword [esp + 0x30]
add eax, 0x188
inc ecx
sar edx, 2
cmp ecx, edx
mov dword [esp + 0x30], ecx
jl 0x419270
xor ebx, ebx
jmp 0x419213
lea ecx, [esp + 0x44]
mov byte [esp + 0x248], 0
call fcn.00412110
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
je 0x419687
push eax
call fcn.0055d56e
add esp, 4
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.0055d56e
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2c], 2
jg 0x4196dc
cmp dword [eax + 0x38], 1
jne 0x4196dc
mov edx, dword [eax]
cmp byte [edx + 0x1d4], 0
jne 0x4196dc
push 1
push eax
call fcn.0041a590
lea ecx, [esp + 0x44]
mov byte [esp + 0x248], 0
call fcn.00412110
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4196fe
push eax
call fcn.0055d56e
add esp, 4
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.0055d56e
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x44]
push ecx
call fcn.00414ab0
call fcn.00418b30
lea ecx, [esp + 0x44]
mov byte [esp + 0x248], 0
call fcn.00412110
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
je 0x419766
push eax
call fcn.0055d56e
add esp, 4
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.0055d56e
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8