Function at 0x471f50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47265e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x50]
mov edx, dword [0x46d2c8]
call fcn.00405e14
lea eax, [ebp - 0x10]
call fcn.00475a24
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x20]
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 1
jne 0x471fc0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x472039
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
jne 0x471fe1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x2c]
test byte [eax + 0x2a], 1
je 0x471fdb
or dword [ebp - 0x14], 0x40
jmp 0x472039
or dword [ebp - 0x14], 0x20
jmp 0x472039
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x2c]
test byte [eax + 0x2a], 1
jne 0x472011
test byte [ebp - 0x14], 0x40
jne 0x472002
test byte [ebp - 0x14], 0x80
je 0x472011
and dword [ebp - 0x14], 0xffffffbf
and dword [ebp - 0x14], 0xffffff7f
or dword [ebp - 0x14], 0x20
test byte [ebp - 0x14], 0x40
jne 0x472039
test byte [ebp - 0x14], 0x80
jne 0x472039
test byte [ebp - 0x14], 0x20
jne 0x472039
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x2c]
test byte [eax + 0x2a], 1
je 0x472035
or dword [ebp - 0x14], 0x40
jmp 0x472039
or dword [ebp - 0x14], 0x20
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 1
jne 0x472056
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x78], eax
jmp 0x4720c1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 2
jne 0x47207f
cmp dword [ebp - 0xc], 0
je 0x47207f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x88], eax
jmp 0x4720b0
mov eax, dword [ebp - 8]
cmp byte [eax + 0x10], 0
je 0x47209e
mov dword [ebp - 0x8c], 0x280
mov dword [ebp - 0x88], 0x1e0
jmp 0x4720b0
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x7c]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x8c]
call fcn.00472670
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 1
jne 0x4720d5
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x18], eax
jmp 0x47210a
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
jne 0x4720e7
mov dword [ebp - 0x18], 2
jmp 0x47210a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jbe 0x4720fd
mov dword [ebp - 0x18], 3
cmp dword [ebp - 0x18], 1
jae 0x47210a
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0xc], 0
je 0x472128
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x28], 1
je 0x472128
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x472206
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 1
jne 0x472148
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x20], eax
jmp 0x472206
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
jne 0x472160
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x472206
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 2
jne 0x4721fc
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
call fcn.00405b38
mov esi, eax
dec esi
test esi, esi
jl 0x472206
inc esi
xor ebx, ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x58]
movsx eax, al
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x20]
movsx edx, dl
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x1c]
movsx eax, al
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x20]
movsx edx, dl
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp ecx, eax
jge 0x4721f6
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x5c]
dec eax
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
xor edx, edx
push edx
push eax
call fcn.0042b5ec
mov dword [ebp - 0x20], eax
inc ebx
dec esi
jne 0x47218c
jmp 0x472206
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 1
jne 0x47221a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x24], eax
jmp 0x47224e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0
jne 0x47222c
mov dword [ebp - 0x24], 1
jmp 0x47224e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
je 0x47224e
cmp dword [ebp - 0x24], 2
je 0x47224e
cmp dword [ebp - 0x24], 3
je 0x47224e
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
call fcn.0046e7cc
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0xc], 0
je 0x472275
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
call fcn.0046e778
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
call fcn.00405b38
mov esi, eax
dec esi
test esi, esi
jl 0x472315
inc esi
xor ebx, ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + ebx*4]
call fcn.0046e778
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp eax, 1
jne 0x4722b9
cmp ecx, dword [ebp - 0x34]
jne 0x4722b2
xor edi, edi
jmp 0x4722de
mov edi, 0x2710
jmp 0x4722de
test eax, eax
jne 0x4722d2
mov eax, dword [ebp - 0x30]
shl eax, 2
push eax
mov eax, ecx
pop edx
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov edi, eax
jmp 0x4722de
mov eax, ecx
sub eax, dword [ebp - 0x34]
cdq
xor eax, edx
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 0x2c]
call fcn.00405b38
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
inc eax
push eax
lea eax, [ebp - 0x2c]
mov ecx, 1
mov edx, dword [0x471f30]
call fcn.00405cf4
add esp, 4
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x38]
mov dword [eax + edx*4], edi
inc ebx
dec esi
jne 0x47228e
xor eax, eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0xc], 0
je 0x47232e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
call fcn.0046e728
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
call fcn.00405b38
mov esi, eax
dec esi
test esi, esi
jl 0x472394
inc esi
xor ebx, ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + ebx*4]
mov edx, dword [ebp - 0x2c]
mov edi, dword [edx + ebx*4]
call fcn.0046e728
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
cmp eax, 1
jne 0x472376
cmp ecx, dword [ebp - 0x3c]
jne 0x47236e
add edi, 0
jmp 0x47238a
add edi, 0x2710
jmp 0x47238a
test eax, eax
jne 0x47237e
add edi, ecx
jmp 0x47238a
mov eax, ecx
sub eax, dword [ebp - 0x3c]
cdq
xor eax, edx
sub eax, edx
add edi, eax
mov eax, dword [ebp - 0x2c]
mov dword [eax + ebx*4], edi
inc ebx
dec esi
jne 0x472343
mov dword [ebp - 0x40], 0x186a0
mov dword [ebp - 0x44], 0xffffffff
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
call fcn.00405b38
mov esi, eax
dec esi
test esi, esi
jl 0x4723cc
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x2c]
mov edi, dword [eax + ebx*4]
cmp edi, dword [ebp - 0x40]
jge 0x4723c8
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], ebx
inc ebx
dec esi
jne 0x4723b7
cmp dword [ebp - 0x44], 0
jl 0x4723e5
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x44]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x28], eax
mov bl, 1
jmp 0x4723ec
xor eax, eax
mov dword [ebp - 0x28], eax
xor ebx, ebx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x30], 1
jne 0x4723fd
mov eax, dword [ebp - 0xc]
mov edi, dword [eax + 0x3c]
jmp 0x472420
mov eax, dword [ebp + 8]
cmp dword [eax + 0x30], 0
jne 0x472413
xor edi, edi
test bl, bl
je 0x472420
mov edi, 2
jmp 0x472420
mov eax, dword [ebp - 0xc]
mov edi, dword [eax + 0x3c]
test bl, bl
je 0x472420
or edi, 2
mov eax, dword [ebp - 8]
cmp byte [eax + 0x10], 0
je 0x472433
xor eax, eax
mov dword [ebp - 0x74], eax
jmp 0x472513
mov eax, dword [ebp + 8]
cmp dword [eax + 0x34], 1
jne 0x47244a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x74], eax
jmp 0x472513
mov eax, dword [ebp + 8]
cmp dword [eax + 0x34], 2
jne 0x47245e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x48], eax
jmp 0x472464
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x48], 0
je 0x472513
mov dword [ebp - 0x4c], 0x186a0
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x28]
mov edx, dword [edx + 0x654]
mov ecx, dword [0x46d2c8]
call fcn.00405e50
mov eax, dword [ebp - 0x50]
call fcn.00405b38
mov esi, eax
dec esi
test esi, esi
jl 0x472513
inc esi
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x54]
add eax, eax
mov edx, dword [ebp - 0x50]
push esi
push edi
lea esi, [edx + eax*8]
lea edi, [ebp - 0x9c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x90]
jne 0x47250d
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebp - 0x78]
jne 0x47250d
mov eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0x7c]
jne 0x47250d
mov eax, dword [ebp - 0x94]
sub eax, dword [ebp - 0x48]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 0x4c]
jge 0x47250d
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x472513
inc dword [ebp - 0x54]
dec esi
jne 0x4724ab
mov eax, dword [ebp + 8]
cmp dword [eax + 0x38], 1
jne 0x472524
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0x44]
jmp 0x472555
mov eax, dword [ebp + 8]
cmp dword [eax + 0x38], 0
jne 0x472531
xor esi, esi
jmp 0x472555
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0x44]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
mov ecx, 4
call fcn.0045dad4
test al, al
je 0x472553
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0x44]
jmp 0x472555
xor esi, esi
mov eax, dword [ebp - 4]
mov edx, 0x48
call fcn.004078a8
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x7c]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x78]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x28], edx
call fcn.00475a9c
xor edx, edx
push edx
push eax
call fcn.00475a90
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 8]
mov al, byte [eax + 0x10]
call fcn.0042b688
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 8]
cmp byte [eax + 0x10], 1
cmc
sbb eax, eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
cmp bl, 1
cmc
sbb eax, eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x3c], edi
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x74]
mov dword [eax + 0x40], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x44], esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472665
lea eax, [ebp - 0x50]
mov edx, dword [0x46d2c8]
call fcn.00405e14
lea eax, [ebp - 0x2c]
mov edx, dword [0x471f30]
call fcn.00405e14
lea eax, [ebp - 0x10]
call fcn.004064cc
ret