Function at 0x5020c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x5c
mov edi, edx
mov dword [esp], ecx
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x2c], eax
test edi, edi
je 0x50522e
mov eax, dword [esp]
mov ecx, dword [eax]
lea edx, [eax + 0x20]
mov dword [esp + 0x1c], edx
lea eax, [eax + 0x3c]
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], ecx
lea eax, [ecx + 0xc]
mov dword [esp + 0x24], eax
jmp 0x5024f0
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x502447
mov ecx, dword [ebp + 0x30]
mov dword [eax], ecx
mov dword [ebp + 0x30], eax
mov dword [eax + 4], 8
add eax, 8
mov edx, dword [esp]
mov ecx, dword [edx + 0x108]
mov dword [eax + 4], ecx
mov dword [eax], esi
mov dword [edx + 0x108], eax
jmp case.0x50253c.1
mov eax, dword [esp + 0xc]
mov dword [eax], 2
jmp case.0x50253c.1
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x502405
mov ecx, dword [ebx + 0x2c]
mov dword [eax], ecx
mov dword [ebx + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
cmp dword [ebx], 0
jne 0x504f9f
mov ecx, dword [ebx + 0x30]
mov eax, dword [ecx + 4]
lea edx, [eax + 8]
cmp edx, 0x7f8
ja 0x5023c8
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x5023ef
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x502447
mov ecx, dword [ebp + 0x30]
mov dword [eax], ecx
mov dword [ebp + 0x30], eax
mov dword [eax + 4], 8
add eax, 8
mov edx, dword [esp]
mov ecx, dword [edx + 0xd8]
mov dword [eax + 4], ecx
mov dword [eax], esi
mov dword [edx + 0xd8], eax
jmp case.0x50253c.1
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x502447
mov eax, dword [ebp + 0x30]
mov dword [esi], eax
mov dword [ebp + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x30000
mov eax, dword [ebp + 0x1c]
test eax, eax
mov ecx, dword [esp + 8]
cmovne ecx, eax
mov dword [ecx], esi
mov dword [ebp + 0x1c], esi
add dword [ebp + 0x48], 5
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x5022c6
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x5022f1
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x502447
mov eax, dword [ebp + 0x30]
mov dword [esi], eax
mov dword [ebp + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x2000
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], esi
mov dword [ebp + 0x1c], esi
add dword [ebp + 0x48], 6
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x502321
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x50234c
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x502447
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
cmp dword [ebp], 0
jne case.0x50253c.1
mov ecx, dword [ebp + 0x30]
mov eax, dword [ecx + 4]
lea edx, [eax + 8]
cmp edx, 0x7f8
ja 0x502410
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x502437
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x502447
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
cmp dword [ebp], 0
jne case.0x50253c.1
mov ecx, dword [ebp + 0x30]
mov eax, dword [ecx + 4]
lea edx, [eax + 8]
cmp edx, 0x7f8
jbe 0x504609
sub esp, 0xc
push 0x800
jmp 0x502106
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x5023bd
mov ecx, dword [edi + 0x30]
mov dword [eax], ecx
mov dword [edi + 0x30], eax
mov dword [eax + 4], 8
add eax, 8
mov edx, dword [esp]
mov ecx, dword [edx + 0xd4]
mov dword [eax + 4], ecx
mov dword [eax], esi
mov dword [edx + 0xd4], eax
jmp case.0x50253c.1
mov dword [edi], 2
jmp case.0x50253c.1
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x502405
mov ecx, dword [ebx + 0x30]
mov dword [eax], ecx
mov dword [ebx + 0x30], eax
mov dword [eax + 4], 8
add eax, 8
mov ecx, dword [edi + 0xec]
mov dword [eax + 4], ecx
mov dword [eax], esi
mov dword [edi + 0xec], eax
jmp 0x504f9f
mov dword [ebx], 2
jmp 0x504f9f
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x502447
mov ecx, dword [ebp + 0x30]
mov dword [eax], ecx
mov dword [ebp + 0x30], eax
mov dword [eax + 4], 8
add eax, 8
mov ecx, dword [edi + 0x1c]
mov dword [eax + 4], ecx
mov dword [eax], esi
mov dword [edi + 0x1c], eax
jmp case.0x50253c.1
mov dword [ebp], 2
jmp case.0x50253c.1
test edi, edi
je 0x502482
test eax, eax
je 0x50247d
mov ecx, dword [edi]
test ecx, ecx
je 0x50247d
mov edx, dword [ecx + 8]
and edx, 0xfffffffc
or edx, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov edi, dword [edi + 4]
jmp 0x502460
mov eax, dword [esp]
mov ecx, dword [eax]
cmp dword [ecx], 0
jne 0x5024a6
mov eax, dword [ebp + 0x1c]
shl eax, 2
mov edx, 0x11
push 0
push 2
push eax
push 0x40
call fcn.00506ea0
add esp, 0x10
mov ecx, ebx
call fcn.004fc770
test esi, esi
je 0x5024c4
test eax, eax
je 0x5024c4
mov ecx, dword [esi + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x18]
shl eax, 2
xor eax, 0xfffffffc
mov edx, 0x20
mov ecx, ebx
push eax
push 0x82
push dword [ebp + 0x14]
push 0x8d
call fcn.004fb7b0
add esp, 0x10
jmp case.0x50253c.1
mov esi, dword [edi + 4]
test esi, esi
je 0x502520
mov ecx, dword [esp + 0xc]
call fcn.004fc770
test eax, eax
je 0x502519
mov ecx, dword [esi]
test ecx, ecx
je 0x502519
mov edx, dword [ecx + 8]
and edx, 0xfffffffc
or edx, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x502500
mov dword [esp + 4], edi
mov edx, dword [edi + 0x10]
movzx eax, word [edx]
lea ecx, [eax - 3]
movzx ecx, cx
cmp ecx, 0x9f
ja case.0x50253c.1
jmp dword [ecx*4 + 0x505240]
mov ecx, dword [esp]
mov ebp, dword [ecx]
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], 0
mov eax, dword [ecx + 8]
mov esi, edx
sub esi, dword [ecx + 4]
mov eax, dword [eax + esi*2]
lea edi, [eax + 4]
mov dword [esp + 8], eax
test eax, eax
mov esi, 0x8d
mov eax, 0x82
cmove esi, eax
mov eax, 4
cmove edi, eax
sub esp, 0xc
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2a]
push eax
lea eax, [esp + 0x3e]
push eax
call fcn.00529f20
add esp, 0x20
mov ebx, eax
movzx eax, word [esp + 0x22]
add eax, 0xffffffdf
movzx eax, ax
cmp eax, 7
ja case.0x5025bb.2
jmp dword [eax*4 + 0x5054c0]
movzx eax, word [esp + 0x12]
cmp eax, 0x16
je 0x5025d8
movzx eax, ax
cmp eax, 0x11
jne 0x50292b
mov eax, dword [esp + 4]
mov esi, dword [eax + 0x18]
mov ecx, ebp
call fcn.004fc770
test esi, esi
mov edi, dword [esp]
je 0x502610
nop dword [eax]
test eax, eax
je 0x502609
mov ecx, dword [esi]
test ecx, ecx
je 0x502609
mov edx, dword [ecx + 8]
and edx, 0xfffffffc
or edx, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x5025f0
mov edx, 0x20
mov ecx, ebp
push 0
push 0x82
push 0
push 0xc
call fcn.004fb7b0
add esp, 0x10
mov ecx, dword [edi]
cmp dword [ecx], 0
je 0x502aeb
cmp dword [ebp], 0
jne case.0x5025bb.2
jmp 0x502b0a
mov edx, 0x20
mov ecx, ebp
mov edi, dword [esp + 8]
push edi
push esi
push 0
push 0xc
call fcn.004fb7b0
add esp, 0x10
movzx edx, word [esp + 0x12]
sub esp, 4
mov ecx, dword [esp + 4]
push 1
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.00512cd0
add esp, 0x10
mov edx, 0x20
mov ecx, ebp
push 0
push 0xc
push edi
push esi
call fcn.004fb7b0
add esp, 0x10
cmp dword [ebp], 0
je 0x502c25
mov esi, dword [esp + 0x14]
mov ecx, ebp
call fcn.004fc770
test esi, esi
je 0x5026d0
nop word [eax + eax]
test eax, eax
je 0x5026c9
mov ecx, dword [esi]
test ecx, ecx
je 0x5026c9
mov edx, dword [ecx + 8]
and edx, 0xfffffffc
or edx, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x5026b0
cmp dword [esp + 8], 0
jne case.0x5025bb.2
mov eax, dword [esp]
mov ecx, dword [eax]
cmp dword [ecx], 0
jne case.0x5025bb.2
mov edx, 0x11
push 0
push 2
push 4
push 0x40
jmp 0x5051d4
mov edx, 0x20
mov ecx, ebp
mov edi, dword [esp + 8]
push edi
push esi
push 0
push 0xc
call fcn.004fb7b0
add esp, 0x10
mov edx, 0x20
mov ecx, ebp
push 0
push 0x40
push edi
push esi
call fcn.004fb7b0
add esp, 0x10
cmp dword [ebp], 0
jne 0x502758
mov edx, 0x11
mov ecx, ebp
push 0
push 0xc
push 0
push 0x40
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x50274e
or byte [eax + 1], 0x38
cmp dword [ebp], 0
je 0x5030d3
mov eax, dword [esp + 4]
lea eax, [eax + 0x14]
mov dword [esp + 0x18], eax
xor ebx, ebx
cmp dword [ebp], 0
jne 0x50311e
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x502eab
lea ebx, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x502ed8
mov edx, 0x20
mov ecx, ebp
mov edi, dword [esp + 8]
push edi
push esi
push 0
push 0xc
call fcn.004fb7b0
add esp, 0x10
mov edx, 0x20
mov ecx, ebp
push 0
push 0x40
push edi
push esi
call fcn.004fb7b0
add esp, 0x10
xor esi, esi
cmp dword [ebp], 0
mov edi, dword [esp]
jne 0x503c42
mov edx, 0x11
mov ecx, ebp
push 0
push 0xc
push 0
push 0x40
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x5027ec
or byte [eax + 1], 0x38
xor esi, esi
cmp dword [ebp], 0
jne 0x503c42
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x5038d0
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x5038fd
mov edx, 0x20
mov ecx, ebp
push edi
push esi
push 0
push 1
call fcn.004fb7b0
add esp, 0x10
mov edx, 0x20
mov ecx, ebp
push dword [esp + 8]
push esi
push 0
push 0xc
call fcn.004fb7b0
add esp, 0x10
cmp dword [ebp], 0
jne 0x502875
mov edx, 0x11
mov ecx, ebp
push 0
push 1
push 1
push 0x40
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x50286b
or byte [eax + 1], 0x28
cmp dword [ebp], 0
je 0x5030f4
mov edx, 0x20
mov ecx, ebp
push 0
push 1
push edi
push esi
call fcn.004fb7b0
add esp, 0x10
movzx edx, word [esp + 0x12]
sub esp, 4
mov ecx, dword [esp + 4]
push 1
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.00512cd0
add esp, 0x10
mov edx, 0x20
mov ecx, ebp
push 0
push 0xc
push dword [esp + 0x10]
push esi
call fcn.004fb7b0
add esp, 0x10
cmp dword [ebp], 0
je 0x502c46
mov esi, dword [esp + 0x14]
mov ecx, ebp
call fcn.004fc770
test esi, esi
je 0x502900
nop word [eax + eax]
test eax, eax
je 0x5028f9
mov ecx, dword [esi]
test ecx, ecx
je 0x5028f9
mov edx, dword [ecx + 8]
and edx, 0xfffffffc
or edx, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x5028e0
cmp dword [esp + 8], 0
jne case.0x5025bb.2
mov eax, dword [esp]
mov ecx, dword [eax]
cmp dword [ecx], 0
jne case.0x5025bb.2
mov edx, 0x11
push 0
push 2
push 8
push 0x40
jmp 0x5051d4
mov eax, dword [esp + 4]
mov ebx, dword [eax + 0x20]
mov edx, 0x20
mov ecx, ebp
push dword [esp + 8]
push esi
push 0
push 0xc
call fcn.004fb7b0
add esp, 0x10
cmp ebx, 0
je 0x502c67
mov edx, 0x20
mov ecx, ebp
push edi
push esi
push 0
push 3
call fcn.004fb7b0
add esp, 0x10
xor ebx, ebx
cmp dword [ebp], 0
mov edi, dword [esp]
jne 0x5049c0
mov edx, 0x11
mov ecx, ebp
push 0
push 0xc
push 2
push 0x40
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x502996
or byte [eax + 1], 0x28
xor ebx, ebx
cmp dword [ebp], 0
jne 0x5049c0
mov edx, 1
mov ecx, ebp
push 0
push 3
push 0
push 0xc
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x5029c0
mov byte [eax], 0x3b
xor ebx, ebx
cmp dword [ebp], 0
jne 0x5049c0
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x5048b1
lea ebx, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x5048de
mov esi, dword [esp]
mov ebp, dword [esi]
mov ecx, eax
and ecx, 0xfffe
cmp ecx, 0x9a
jne 0x503313
cmp dword [esi + 0x18], 0
je 0x5032e2
mov edx, 0x20
mov ecx, ebp
push dword [esi + 0x40]
push 0x8d
push 0
push 2
call fcn.004fb7b0
add esp, 0x10
mov edx, 0x20
mov ecx, ebp
push 1
push 0x40
push 0
push 1
call fcn.004fb7b0
add esp, 0x10
mov eax, dword [esi + 0x18]
mov edx, 0x20
mov ecx, ebp
push dword [eax + 0x18]
push 0x40
push 0
push 3
call fcn.004fb7b0
add esp, 0x10
xor esi, esi
cmp dword [ebp], 0
jne 0x5040c9
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x503f2a
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x503f57
mov edi, dword [esp]
mov ebx, dword [edi]
mov ebp, dword [esp + 4]
cmp dword [ebp + 0x18], 0
js 0x502d77
mov edx, 0x20
mov ecx, ebx
push dword [ebp + 0x14]
push 0x8d
push 0
push 2
call fcn.004fb7b0
add esp, 0x10
cmp dword [ebx], 0
je 0x5032c1
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x5024c4
cmp dword [ebx], 0
je 0x5038af
mov ecx, ebx
call fcn.004fc770
xor esi, esi
test eax, eax
jne 0x502468
jmp 0x50247d
mov edx, 0x11
push 0
push 2
push 4
push 0x40
call fcn.00506ea0
add esp, 0x10
cmp dword [ebp], 0
jne case.0x5025bb.2
mov edx, 0x11
mov ecx, ebp
push 0
push 0xc
push 0
push 0x40
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x502b29
or byte [eax + 1], 0x38
cmp dword [ebp], 0
jne case.0x5025bb.2
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x503759
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x503786
mov ecx, dword [esp]
mov edi, dword [ecx]
add eax, 0xffffff8f
movzx eax, ax
xor ebx, ebx
cmp eax, 1
seta bl
test byte [edx + ebx*2 + 4], 1
jne 0x502cc6
mov eax, dword [esp + 4]
mov esi, dword [eax + 0xc]
mov ecx, edi
call fcn.004fc770
test esi, esi
je 0x502bb0
nop word cs:[eax + eax]
test eax, eax
je 0x502ba9
mov ecx, dword [esi]
test ecx, ecx
je 0x502ba9
mov edx, dword [ecx + 8]
and edx, 0xfffffffc
or edx, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x502b90
mov edx, 0x20
mov ecx, edi
push 0
push 0x82
push 0
push 0xc
call fcn.004fb7b0
add esp, 0x10
mov eax, dword [esp]
mov ecx, dword [eax]
cmp dword [ecx], 0
je 0x5037f1
cmp dword [edi], 0
jne case.0x50253c.1
jmp 0x50380f
mov eax, dword [esp + 4]
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + 0xc]
call fcn.004fc770
test esi, esi
je case.0x50253c.1
nop
test eax, eax
je 0x502c19
mov ecx, dword [esi]
test ecx, ecx
je 0x502c19
mov edx, dword [ecx + 8]
and edx, 0xfffffffc
or edx, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x502c00
jmp case.0x50253c.1
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x502f1a
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x502f47
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x502f89
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x502fb6
xor ebx, ebx
cmp dword [ebp], 0
jne 0x50509d
sub esp, 8
mov edx, 0x1462
mov ecx, ebp
push edi
push esi
push 0
push 0xc
push 0
push 0
call fcn.004fbe20
add esp, 0x20
xor ebx, ebx
test eax, eax
jne 0x50509d
xor ebx, ebx
cmp dword [ebp], 0
jne 0x50509d
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x504e20
lea ebx, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x504e4d
mov edx, 0x20
mov ecx, edi
push 0
push 0x82
push 0
push 0xc
call fcn.004fb7b0
add esp, 0x10
cmp dword [edi], 0
mov ebp, dword [esp + 4]
jne 0x502d11
mov edx, 0x11
mov ecx, edi
push 0
push 0xc
push 0
push 0x40
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x502d08
or byte [eax + 1], 0x38
cmp dword [edi], 0
je 0x503ffc
mov esi, dword [ebp + 0xc]
mov ecx, edi
call fcn.004fc770
test esi, esi
mov edi, dword [esp]
je 0x502d50
nop word cs:[eax + eax]
test eax, eax
je 0x502d49
mov ecx, dword [esi]
test ecx, ecx
je 0x502d49
mov edx, dword [ecx + 8]
and edx, 0xfffffffc
or edx, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x502d30
mov ecx, dword [edi]
cmp dword [ecx], 0
jne case.0x50253c.1
or ebx, 2
shl ebx, 2
mov edx, 0x11
push 0
push 2
push ebx
push 0x40
call fcn.00506ea0
jmp 0x5024e7
movzx eax, ax
cmp eax, 0x8b
je 0x502d8c
cmp eax, 0x86
jne 0x502e44
movzx esi, word [edx + 4]
shl esi, 3
mov edx, 0x20
mov ecx, ebx
push 0
push 0x82
push 0
push 1
call fcn.004fb7b0
add esp, 0x10
mov edx, 0x20
mov ecx, ebx
push 4
push 0x82
push 0
push 3
call fcn.004fb7b0
add esp, 0x10
mov eax, dword [edi + 0x20]
add eax, esi
mov edx, 0x20
mov ecx, ebx
push 0
push 1
push eax
push 0x8d
call fcn.004fb7b0
add esp, 0x10
cmp dword [edi + 0x44], 0
je 0x502e05
mov edx, 0x20
mov ecx, ebx
push 8
push 0x82
push 0
push 1
call fcn.004fb7b0
add esp, 0x10
or esi, 4
add esi, dword [edi + 0x20]
mov edx, 0x20
mov ecx, ebx
push 0
push 3
push esi
push 0x8d
call fcn.004fb7b0
add esp, 0x10
mov eax, dword [edi + 0x44]
test eax, eax
je 0x502e44
mov edx, 0x20
mov ecx, ebx
push 0
push 1
push eax
push 0x8d
call fcn.004fb7b0
add esp, 0x10
mov esi, dword [ebp + 0xc]
mov ecx, ebx
call fcn.004fc770
test esi, esi
je 0x502e80
nop word cs:[eax + eax]
test eax, eax
je 0x502e79
mov ecx, dword [esi]
test ecx, ecx
je 0x502e79
mov edx, dword [ecx + 8]
and edx, 0xfffffffc
or edx, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x502e60
mov ecx, dword [edi]
cmp dword [ecx], 0
jne case.0x50253c.1
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x1c]
shl eax, 2
mov edx, 0x11
push 0
push 2
push eax
push 0x40
call fcn.00506ea0
jmp 0x5024e7
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov ebx, eax
test ebx, ebx
je 0x503115
mov eax, dword [ebp + 0x30]
mov dword [ebx], eax
mov dword [ebp + 0x30], ebx
mov dword [ebx + 4], 0x10
add ebx, 8
mov dword [ebx], 0
mov dword [ebx + 8], 0x30000
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], ebx
mov dword [ebp + 0x1c], ebx
add dword [ebp + 0x48], 5
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x502ff8
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x503023
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x50329d
mov eax, dword [ebp + 0x30]
mov dword [esi], eax
mov dword [ebp + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x30000
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], esi
mov dword [ebp + 0x1c], esi
add dword [ebp + 0x48], 5
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x50302d
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x503058
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x5032a9
mov eax, dword [ebp + 0x30]
mov dword [esi], eax
mov dword [ebp + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x30000
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], esi
mov dword [ebp + 0x1c], esi
add dword [ebp + 0x48], 5
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x503080
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x5030ab
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x503115
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
jmp 0x50311e
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x50329d
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x502698
mov ecx, dword [esi + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
jmp 0x502698
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x5032a9
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x5028c8
mov ecx, dword [esi + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
jmp 0x5028c8
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x50393f
lea ebx, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x50396c
mov ecx, dword [ebp + 0x30]
mov eax, dword [ecx + 4]
lea edx, [eax + 0x10]
cmp edx, 0x7f8
ja 0x5039ae
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x5039d9
mov dword [ebp], 2
xor ebx, ebx
mov eax, dword [esp + 4]
mov edi, dword [eax + 0x18]
mov ecx, ebp
call fcn.004fc770
test edi, edi
je 0x503150
test eax, eax
je 0x503149
mov ecx, dword [edi]
test ecx, ecx
je 0x503149
mov edx, dword [ecx + 8]
and edx, 0xfffffffc
or edx, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov edi, dword [edi + 4]
test edi, edi
jne 0x503130
mov edx, 0x20
mov ecx, ebp
mov edi, dword [esp + 8]
push edi
push esi
push 0
push 0xc
call fcn.004fb7b0
add esp, 0x10
mov edx, 0x20
mov ecx, ebp
push 0
push 0x40
push edi
push esi
call fcn.004fb7b0
add esp, 0x10
cmp dword [ebp], 0
je 0x5031cd
mov ecx, ebp
call fcn.004fc770
test ebx, ebx
je 0x5031a2
test eax, eax
je 0x5031a2
mov ecx, dword [ebx + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
cmp dword [esp + 8], 0
jne case.0x5025bb.2
mov eax, dword [esp]
mov ecx, dword [eax]
cmp dword [ecx], 0
jne case.0x5025bb.2
mov edx, 0x11
push 0
push 2
push 4
push 0x40
jmp 0x5051d4
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x5031e7
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x503214
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x5032b5
mov eax, dword [ebp + 0x30]
mov dword [esi], eax
mov dword [ebp + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x30000
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], esi
mov dword [ebp + 0x1c], esi
add dword [ebp + 0x48], 5
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x50324f
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x503276
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x5032b5
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
je 0x503184
mov ecx, dword [esi + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
jmp 0x503184
mov dword [ebp], 2
jmp 0x502698
mov dword [ebp], 2
jmp 0x5028c8
mov dword [ebp], 2
jmp 0x503184
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x503a2b
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x503a58
cmp dword [esi + 0x78], 0
je 0x503313
cmp dword [ebp], 0
jne case.0x50253c.1
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x504469
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x504496
cmp dword [esi + 0x74], 0
je 0x503352
cmp dword [esi + 0xb0], 0
mov eax, dword [ebp]
je 0x5037c8
test eax, eax
jne case.0x50253c.1
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x50401d
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x50404a
movzx eax, ax
mov edx, 0x20
mov ecx, ebp
cmp eax, 0x98
je 0x503dd2
cmp eax, 0x99
jne 0x503ddf
push dword [esi + 0x40]
push 0x8d
push 0
push 1
call fcn.004fb7b0
add esp, 0x10
mov edx, 0x20
mov ecx, ebp
push 0
push 2
push 0
push 0x8d
call fcn.004fb7b0
add esp, 0x10
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x10]
add eax, 4
mov edx, 0x20
mov ecx, ebp
push eax
push 0x40
push 0
push 2
call fcn.004fb7b0
add esp, 4
mov edx, 0x111
mov ecx, ebp
push 0x52e0f0
call fcn.00505860
add esp, 0x10
mov edx, 0x20
mov ecx, ebp
push 0
push 0x8d
push 0
push 2
call fcn.004fb7b0
add esp, 0x10
mov edx, 0x20
mov ecx, ebp
push 0
push 1
push 0
push 0xc
call fcn.004fb7b0
add esp, 0x10
cmp dword [ebp], 0
jne case.0x50253c.1
mov edx, 0x11
mov ecx, ebp
push 0
push 0xc
push 0
push 0x40
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x50342e
or byte [eax + 1], 0x38
cmp dword [ebp], 0
jne case.0x50253c.1
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x50225b
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x502288
mov edx, 0x20
mov esi, dword [esp + 0xc]
mov ecx, esi
push 0
push 0x82
push 0
push 1
call fcn.004fb7b0
add esp, 0x10
mov eax, dword [esp]
mov ecx, dword [eax]
cmp dword [ecx], 0
jne 0x503496
mov edx, 0x11
push 0
push 2
push 4
push 0x40
call fcn.00506ea0
add esp, 0x10
mov edx, 0x20
mov ecx, esi
push 0
push 1
mov eax, dword [esp + 0x24]
push dword [eax]
push 0x8d
jmp 0x5024e2
mov ecx, dword [esp]
mov esi, dword [ecx]
mov ebx, dword [esp + 4]
cmp dword [ebx + 0x14], 0
je 0x5034c8
mov edx, dword [ebx + 8]
call fcn.005020c0
mov edi, dword [ebx + 0xc]
mov ecx, esi
call fcn.004fc770
test edi, edi
je 0x503500
nop word cs:[eax + eax]
test eax, eax
je 0x5034f9
mov ecx, dword [edi]
test ecx, ecx
je 0x5034f9
mov edx, dword [ecx + 8]
and edx, 0xfffffffc
or edx, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov edi, dword [edi + 4]
test edi, edi
jne 0x5034e0
cmp dword [ebx + 0x14], 0
jne case.0x50253c.1
mov eax, dword [esp]
cmp dword [eax + 0x64], 0
mov eax, dword [eax + 0x3c]
je 0x504322
test eax, eax
je 0x50432a
mov edx, 0x20
mov ecx, esi
push 0
push 0x82
push 0
push 3
call fcn.004fb7b0
add esp, 0x10
mov edx, 0x20
mov ecx, esi
push 4
push 0x82
push 0
push 1
call fcn.004fb7b0
add esp, 0x10
mov eax, dword [esp]
mov ecx, dword [eax]
cmp dword [ecx], 0
jne 0x503575
mov edx, 0x11
push 0
push 2
push 8
push 0x40
call fcn.00506ea0
add esp, 0x10
mov edx, 0x20
mov ecx, esi
push 0
push 3
mov eax, dword [esp + 0x24]
push dword [eax]
push 0x8d
call fcn.004fb7b0
add esp, 0x10
mov edx, 0x20
mov ecx, esi
push 0
push 1
mov eax, dword [esp + 0x30]
push dword [eax]
push 0x8d
jmp 0x5024e2
movzx eax, word [edx + 2]
cmp eax, 0x81
jb case.0x50253c.122
mov ecx, dword [esp]
mov edx, dword [esp + 4]
call fcn.0052aef0
jmp case.0x50253c.1
mov ecx, dword [esp]
mov edx, dword [esp + 4]
call fcn.0052a720
jmp case.0x50253c.1
mov edi, dword [esp + 4]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 4], 0
movzx eax, word [edx + 2]
cmp eax, 0x81
jb 0x503b84
sub esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, esi
push edi
call fcn.0051ff40
add esp, 0x10
mov edx, dword [edi + 8]
mov ecx, esi
call fcn.0052aef0
jmp case.0x50253c.1
xor eax, eax
mov esi, dword [esp]
cmp dword [esi + 0x68], 0
setne al
shl eax, 4
mov edx, 0x20
mov edi, dword [esp + 0xc]
mov ecx, edi
push eax
push 0x82
push 0
push 1
call fcn.004fb7b0
add esp, 0x10
cmp dword [esi + 0x68], 0
je 0x503670
mov edx, 0x20
mov ecx, edi
push 0
push 0x82
push 0
push 3
call fcn.004fb7b0
add esp, 0x10
mov ecx, dword [esi]
cmp dword [ecx], 0
jne 0x50369c
cmp dword [esi + 0x68], 0
mov eax, 0x14
mov edx, 4
cmove eax, edx
mov edx, 0x11
push 0
push 2
push eax
push 0x40
call fcn.00506ea0
add esp, 0x10
mov edx, 0x20
mov ecx, edi
push 0
push 1
push dword [esi + 0x3c]
push 0x8d
call fcn.004fb7b0
add esp, 0x10
cmp dword [esi + 0x68], 0
je case.0x50253c.1
mov edx, 0x20
mov ecx, dword [esp + 0xc]
push 0
push 3
mov eax, dword [esp + 8]
push dword [eax + 0x40]
push 0x8d
jmp 0x5024e2
mov esi, dword [esp]
cmp dword [esi + 0x74], 0
mov edi, dword [esp + 0xc]
jne 0x503703
mov edx, 0x20
mov ecx, edi
push 0xffffffffffffffff
push 0x40
push 0
push 1
call fcn.004fb7b0
add esp, 0x10
cmp dword [esi + 0xb0], 0
mov eax, dword [edi]
je 0x503e1a
test eax, eax
jne case.0x50253c.1
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x50468a
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x5046b7
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x503e47
mov ecx, dword [esp]
mov dword [ecx + 0x18], eax
jmp case.0x50253c.1
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x503a1f
mov eax, dword [ebp + 0x30]
mov dword [esi], eax
mov dword [ebp + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x2000
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], esi
mov dword [ebp + 0x1c], esi
add dword [ebp + 0x48], 6
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x50385c
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x503887
test eax, eax
jne case.0x50253c.1
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x50426b
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x504298
mov edx, 0x11
push 0
push 2
push 4
push 0x40
call fcn.00506ea0
add esp, 0x10
cmp dword [edi], 0
jne case.0x50253c.1
mov edx, 0x11
mov ecx, edi
push 0
push 0xc
push 0
push 0x40
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x50382e
or byte [eax + 1], 0x38
cmp dword [edi], 0
jne case.0x50253c.1
mov eax, dword [edi + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x504387
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
mov ebx, dword [esp + 4]
jmp 0x5043b8
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x503a1f
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x14]
test eax, eax
je case.0x5025bb.2
mov ecx, dword [esi + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
jmp case.0x5025bb.2
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x503ebf
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x503eec
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x503c39
mov eax, dword [ebp + 0x30]
mov dword [esi], eax
mov dword [ebp + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], esi
mov dword [ebp + 0x1c], esi
add dword [ebp + 0x48], 6
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x503a9a
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x503ac5
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov ebx, eax
test ebx, ebx
je 0x503dc6
mov eax, dword [ebp + 0x30]
mov dword [ebx], eax
mov dword [ebp + 0x30], ebx
mov dword [ebx + 4], 0x10
add ebx, 8
mov dword [ebx], 0
mov dword [ebx + 8], 0x2000
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], ebx
mov dword [ebp + 0x1c], ebx
add dword [ebp + 0x48], 6
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x503acf
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x503afa
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x5041f0
mov ecx, dword [ebp + 0x30]
mov dword [eax], ecx
mov dword [ebp + 0x30], eax
mov dword [eax + 4], 0x10
add eax, 8
mov dword [eax], 0
mov dword [eax + 8], 0
mov edx, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test edx, edx
cmovne ecx, edx
mov dword [ecx], eax
mov dword [esp + 0x18], eax
mov dword [ebp + 0x1c], eax
add dword [ebp + 0x48], 6
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x503b29
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x503b54
mov dword [ebp], 2
jmp case.0x5025bb.2
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x504317
mov eax, dword [ebx + 0x30]
mov dword [esi], eax
mov dword [ebx + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x32000
mov eax, dword [ebx + 0x1c]
lea ecx, [ebx + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], esi
mov dword [ebx + 0x1c], esi
add dword [ebx + 0x48], 5
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x503bdf
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x503c0a
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x503c39
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
jmp 0x503c42
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x503dc6
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
mov eax, dword [esp + 4]
lea ecx, [eax + 0x14]
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 0x14]
test eax, eax
je 0x502763
mov ecx, dword [ebx + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
jmp 0x502763
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x5041f0
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
cmp dword [ebp], 0
jne 0x502875
mov ecx, dword [ebp + 0x30]
mov eax, dword [ecx + 4]
lea edx, [eax + 8]
cmp edx, 0x7f8
ja 0x5041b3
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x5041da
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x40], edx
mov eax, dword [edi + 0x14]
mov dword [esp + 0x50], eax
sub esp, 8
mov ecx, dword [esp + 8]
push 0
lea eax, [esp + 0x3c]
push eax
call fcn.0051df60
jmp 0x5024e7
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x504317
mov ecx, dword [ebx + 0x2c]
mov dword [eax], ecx
mov dword [ebx + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
cmp dword [ebx], 0
jne 0x502ac1
mov ecx, dword [ebx + 0x30]
mov eax, dword [ecx + 4]
lea edx, [eax + 8]
cmp edx, 0x7f8
ja 0x5042da
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x504301
mov dword [ebp], 2
xor esi, esi
movzx edx, word [esp + 0x12]
sub esp, 4
mov ecx, edi
push 1
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.00512cd0
add esp, 0x10
cmp dword [ebp], 0
je 0x503ce9
mov edi, dword [esp + 0x14]
mov ecx, ebp
call fcn.004fc770
test edi, edi
je 0x503ca0
nop word cs:[eax + eax]
test eax, eax
je 0x503c99
mov ecx, dword [edi]
test ecx, ecx
je 0x503c99
mov edx, dword [ecx + 8]
and edx, 0xfffffffc
or edx, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov edi, dword [edi + 4]
test edi, edi
jne 0x503c80
mov ecx, ebp
call fcn.004fc770
test esi, esi
je 0x503cbe
test eax, eax
je 0x503cbe
mov ecx, dword [esi + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
cmp dword [esp + 8], 0
jne case.0x5025bb.2
mov eax, dword [esp]
mov ecx, dword [eax]
cmp dword [ecx], 0
jne case.0x5025bb.2
mov edx, 0x11
push 0
push 2
push 4
push 0x40
jmp 0x5051d4
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x503d03
lea ebx, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x503d30
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov ebx, eax
test ebx, ebx
je 0x503dba
mov eax, dword [ebp + 0x30]
mov dword [ebx], eax
mov dword [ebp + 0x30], ebx
mov dword [ebx + 4], 0x10
add ebx, 8
mov dword [ebx], 0
mov dword [ebx + 8], 0x30000
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], ebx
mov dword [ebp + 0x1c], ebx
add dword [ebp + 0x48], 5
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x503d6b
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x503d92
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x503dba
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x503c66
mov ecx, dword [ebx + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
jmp 0x503c66
mov dword [ebp], 2
jmp 0x503c66
mov dword [ebp], 2
jmp 0x502758
push 0
push 0x82
push 0
push 0xc
jmp 0x503de7
push 0
push 0x40
push 0
push 0xc
call fcn.004fb7b0
add esp, 0x10
cmp dword [ebp], 0
jne case.0x50253c.1
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x5041fc
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x504229
test eax, eax
jne case.0x50253c.1
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x504d30
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x504d5d
mov edi, dword [esp]
mov ebx, dword [edi]
mov esi, dword [ecx + 0x20]
test esi, esi
mov eax, 0
cmovs esi, eax
shl esi, 2
mov edx, 0x20
mov ecx, ebx
push esi
push 0x82
push 0
push 1
call fcn.004fb7b0
add esp, 0x10
mov ecx, dword [edi]
cmp dword [ecx], 0
jne 0x503e93
add esi, 0xc
mov edx, 0x11
push 0
push 2
push esi
push 0x40
call fcn.00506ea0
add esp, 0x10
xor ebp, ebp
cmp dword [ebx], 0
jne 0x504f58
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x504d9e
lea ebp, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x504dcc
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x5040a9
mov eax, dword [ebx + 0x30]
mov dword [esi], eax
mov dword [ebx + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x30000
mov eax, dword [ebx + 0x1c]
lea ecx, [ebx + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], esi
mov dword [ebx + 0x1c], esi
add dword [ebx + 0x48], 5
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x503f92
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x503fbd
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x5040c0
mov eax, dword [ebp + 0x30]
mov dword [esi], eax
mov dword [ebp + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x30000
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], esi
mov dword [ebp + 0x1c], esi
add dword [ebp + 0x48], 5
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x503fc7
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x503ff2
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x5040a9
mov ecx, dword [ebx + 0x2c]
mov dword [eax], ecx
mov dword [ebx + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
jmp 0x5040b1
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x5040c0
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
jmp 0x5040c9
mov eax, dword [edi + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x5043fa
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x504427
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x502447
mov eax, dword [ebp + 0x30]
mov dword [esi], eax
mov dword [ebp + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x30000
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], esi
mov dword [ebp + 0x1c], esi
add dword [ebp + 0x48], 5
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
mov edi, dword [esp]
jbe 0x5046ef
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x502447
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
jmp 0x50494c
mov dword [ebx], 2
xor esi, esi
mov edi, dword [ebp + 0xc]
mov ecx, ebx
call fcn.004fc770
jmp 0x502460
mov dword [ebp], 2
xor esi, esi
mov ecx, ebp
call fcn.004fc770
mov edi, eax
mov edx, 0x20
mov ecx, ebp
push 0
push 0x82
push 0
push 2
call fcn.004fb7b0
add esp, 0x10
mov ecx, ebp
call fcn.004fc770
test esi, esi
je 0x50410a
test eax, eax
je 0x50410a
mov ecx, dword [esi + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
cmp dword [ebp], 0
jne 0x504137
mov edx, 1
mov ecx, ebp
push 4
push 0x82
push 0
push 1
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x504131
mov byte [eax], 0x39
cmp dword [ebp], 0
je 0x504192
test edi, edi
setne bl
cmp dword [ebp], 0
jne case.0x50253c.1
mov edx, 1
mov ecx, ebp
push 8
push 0x82
push 0
push 3
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x504167
mov byte [eax], 0x39
cmp dword [ebp], 0
jne case.0x50253c.1
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x5044d8
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x504505
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x50454b
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x504578
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x5041f0
mov ecx, dword [ebp + 0x30]
mov dword [eax], ecx
mov dword [ebp + 0x30], eax
mov dword [eax + 4], 8
add eax, 8
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [esp + 0x14], eax
jmp 0x502875
mov dword [ebp], 2
jmp 0x502875
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x502447
mov eax, dword [ebp + 0x30]
mov dword [esi], eax
mov dword [ebp + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x30000
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], esi
mov dword [ebp + 0x1c], esi
add dword [ebp + 0x48], 5
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x5045ba
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x5045e5
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x502447
mov eax, dword [ebp + 0x30]
mov dword [esi], eax
mov dword [ebp + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x30000
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], esi
mov dword [ebp + 0x1c], esi
add dword [ebp + 0x48], 5
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x504615
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x504640
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x504317
mov ecx, dword [ebx + 0x30]
mov dword [eax], ecx
mov dword [ebx + 0x30], eax
mov dword [eax + 4], 8
add eax, 8
mov ecx, dword [edi + 0xec]
mov dword [eax + 4], ecx
mov dword [eax], esi
mov dword [edi + 0xec], eax
jmp 0x502ac1
mov dword [ebx], 2
jmp 0x502ac1
test eax, eax
je case.0x50253c.1
mov edx, 0x20
mov ecx, esi
push 0
push 0x82
push 0
push 3
call fcn.004fb7b0
add esp, 0x10
mov edi, dword [esp]
mov ecx, dword [edi]
cmp dword [ecx], 0
jne 0x504363
mov edx, 0x11
push 0
push 2
push 4
push 0x40
call fcn.00506ea0
add esp, 0x10
cmp dword [edi + 0x64], 0
mov eax, dword [esp + 0x1c]
cmove eax, dword [esp + 0x28]
mov edx, 0x20
mov ecx, esi
push 0
push 3
push dword [eax]
push 0x8d
jmp 0x5024e2
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
mov ebx, dword [esp + 4]
je 0x5023bd
mov eax, dword [edi + 0x30]
mov dword [esi], eax
mov dword [edi + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x2000
mov eax, dword [edi + 0x1c]
lea ecx, [edi + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], esi
mov dword [edi + 0x1c], esi
add dword [edi + 0x48], 6
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x5046fb
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x504726
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x50491c
mov eax, dword [edi + 0x30]
mov dword [esi], eax
mov dword [edi + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x2000
mov eax, dword [edi + 0x1c]
lea ecx, [edi + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], esi
mov dword [edi + 0x1c], esi
add dword [edi + 0x48], 6
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x50473b
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x504766
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x502447
mov eax, dword [ebp + 0x30]
mov dword [esi], eax
mov dword [ebp + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x30000
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], esi
mov dword [ebp + 0x1c], esi
add dword [ebp + 0x48], 5
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x50478a
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x5047b5
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x502447
mov eax, dword [ebp + 0x30]
mov dword [esi], eax
mov dword [ebp + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x2000
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test eax, eax
mov dword [esp + 8], ecx
cmove eax, ecx
mov dword [eax], esi
mov dword [ebp + 0x1c], esi
add dword [ebp + 0x48], 6
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x5047e5
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x504810
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x50497d
mov eax, dword [ebp + 0x30]
mov dword [esi], eax
mov dword [ebp + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x2000
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], esi
mov dword [ebp + 0x1c], esi
add dword [ebp + 0x48], 6
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x504859
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x504884
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x502447
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
cmp dword [ebp], 0
jne case.0x50253c.1
mov ecx, dword [ebp + 0x30]
mov eax, dword [ecx + 4]
lea edx, [eax + 8]
cmp edx, 0x7f8
ja 0x5020fe
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x502129
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x502447
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
cmp dword [ebp], 0
jne case.0x50253c.1
mov ecx, dword [ebp + 0x30]
mov eax, dword [ecx + 4]
lea edx, [eax + 8]
cmp edx, 0x7f8
jbe 0x504ee1
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x502447
mov ecx, dword [ebp + 0x30]
mov dword [eax], ecx
mov dword [ebp + 0x30], eax
jmp 0x50239a
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x5023bd
mov eax, dword [edi + 0x30]
mov dword [esi], eax
mov dword [edi + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x30000
mov eax, dword [edi + 0x1c]
test eax, eax
cmove eax, dword [esp + 0x24]
mov dword [eax], esi
mov dword [edi + 0x1c], esi
add dword [edi + 0x48], 5
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
mov edi, dword [esp]
ja 0x504927
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x504956
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x5023bd
mov ecx, dword [edi + 0x2c]
mov dword [eax], ecx
mov dword [edi + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x504969
jmp case.0x50253c.1
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x50491c
mov ecx, dword [edi + 0x2c]
mov dword [eax], ecx
mov dword [edi + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x502d11
mov ecx, dword [esi + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
jmp 0x502d11
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x502447
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
cmp dword [ebp], 0
jne case.0x50253c.1
mov ecx, dword [ebp + 0x30]
mov eax, dword [ecx + 4]
lea edx, [eax + 8]
cmp edx, 0x7f8
ja 0x5021ab
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x5021d6
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x502447
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
test bl, bl
je 0x504828
mov eax, dword [esi + 8]
and eax, 0xfffffffc
or eax, 1
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
cmp dword [ebp], 0
jne case.0x50253c.1
mov eax, dword [esp]
mov edi, dword [eax + 0x18]
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x5021ef
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x50221c
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x50497d
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
test edi, edi
je 0x504e0f
mov eax, dword [esi + 8]
and eax, 0xfffffffc
or eax, 1
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
mov bl, 1
cmp dword [ebp], 0
jne case.0x50253c.1
jmp 0x504146
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov ebx, eax
test ebx, ebx
je 0x5049b7
mov eax, dword [ebp + 0x30]
mov dword [ebx], eax
mov dword [ebp + 0x30], ebx
mov dword [ebx + 4], 0x10
add ebx, 8
mov dword [ebx], 0
mov dword [ebx + 8], 0xa000
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], ebx
mov dword [ebp + 0x1c], ebx
add dword [ebp + 0x48], 6
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x504989
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x5049b0
mov dword [edi], 2
jmp 0x502d11
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x502142
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0x2c]
mov dword [eax], ecx
mov dword [edx + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
mov eax, dword [edi + 0xb0]
test eax, eax
je case.0x50253c.1
mov ecx, dword [esi + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
jmp case.0x50253c.1
mov dword [ebp], 2
jmp 0x504137
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x5049b7
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
jmp 0x5049c0
mov dword [ebp], 2
xor ebx, ebx
mov ecx, ebp
call fcn.004fc770
mov dword [esp + 0x18], eax
mov edx, 0x23
mov ecx, ebp
push 0xfffffffffffffffe
push 0x8c
push 0
push 1
call fcn.004fb7b0
add esp, 0x10
mov edx, 0x20
mov ecx, ebp
push 0
push 0xc
push dword [esp + 0x10]
push esi
call fcn.004fb7b0
add esp, 0x10
mov eax, dword [esp + 4]
mov esi, dword [eax + 0x18]
test esi, esi
je 0x504a5d
cmp dword [ebp], 0
jne 0x504c25
mov eax, esi
sub eax, 0xffffff80
cmp eax, 0x100
jb 0x504a3f
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 6]
cmp edx, 0xff8
ja 0x504ac9
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x504af4
mov edx, 0x11
mov ecx, ebp
push 0
push 1
push esi
push 0x40
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x504a5d
or byte [eax + 1], 8
cmp dword [ebp], 0
jne 0x504c25
mov eax, dword [esp + 4]
movzx esi, word [eax + 0x1c]
mov eax, esi
sub eax, 0xffffff80
cmp eax, 0x100
jb 0x504a9c
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 6]
cmp edx, 0xff8
ja 0x504b11
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x504b3c
mov edx, 0x11
mov ecx, ebp
push 0
push 1
push esi
push 0x40
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x504aba
or byte [eax + 1], 0x38
cmp dword [ebp], 0
jne 0x504c25
jmp 0x504b54
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x504c1e
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 6
add eax, 8
mov byte [eax], 5
add dword [ebp + 0x48], 5
mov byte [eax + 1], 0xd
mov dword [eax + 2], esi
cmp dword [ebp], 0
jne 0x504c25
jmp 0x504a67
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x504c1e
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 6
add eax, 8
mov byte [eax], 5
add dword [ebp + 0x48], 5
mov byte [eax + 1], 0x3d
mov dword [eax + 2], esi
cmp dword [ebp], 0
jne 0x504c25
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x504b6e
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x504b9b
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x504c1e
mov eax, dword [ebp + 0x30]
mov dword [esi], eax
mov dword [ebp + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], esi
mov dword [ebp + 0x1c], esi
add dword [ebp + 0x48], 6
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x504bd6
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x504bfd
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x504c1e
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x504c25
mov ecx, dword [esi + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
jmp 0x504c25
mov dword [ebp], 2
mov ecx, edi
call fcn.0050c1f0
cmp dword [ebp], 0
jne 0x505198
mov edx, 1
mov ecx, ebp
push 0
push 3
push 0
push 0xc
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x504c54
mov byte [eax], 0x3b
cmp dword [ebp], 0
jne 0x505198
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x504c78
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x504ca5
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x505191
mov eax, dword [ebp + 0x30]
mov dword [esi], eax
mov dword [ebp + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x8000
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], esi
mov dword [ebp + 0x1c], esi
add dword [ebp + 0x48], 6
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x504ce0
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x504d0b
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x505191
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x505198
mov eax, dword [esi + 8]
and eax, 0xfffffffc
or eax, 1
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
jmp 0x505198
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x5023bd
mov eax, dword [edi + 0x30]
mov dword [esi], eax
mov dword [edi + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x30000
mov eax, dword [edi + 0x1c]
test eax, eax
cmove eax, dword [esp + 0x24]
mov dword [eax], esi
mov dword [edi + 0x1c], esi
add dword [edi + 0x48], 5
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x504e8f
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x504eba
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov ebp, eax
test ebp, ebp
je 0x504f50
mov eax, dword [ebx + 0x30]
mov dword [ebp], eax
mov dword [ebx + 0x30], ebp
mov dword [ebp + 4], 0x10
add ebp, 8
mov dword [ebp], 0
mov dword [ebp + 8], 0x30000
mov eax, dword [ebx + 0x1c]
lea ecx, [ebx + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], ebp
mov dword [ebx + 0x1c], ebp
add dword [ebx + 0x48], 5
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x504eed
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x504f14
xor ebx, ebx
cmp dword [ebp], 0
jne case.0x50253c.1
jmp 0x504146
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov ebx, eax
test ebx, ebx
je 0x505094
mov eax, dword [ebp + 0x30]
mov dword [ebx], eax
mov dword [ebp + 0x30], ebx
mov dword [ebx + 4], 0x10
add ebx, 8
mov dword [ebx], 0
mov dword [ebx + 8], 0xa000
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], ebx
mov dword [ebp + 0x1c], ebx
add dword [ebp + 0x48], 6
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x504f1b
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x504f46
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x5023bd
mov ecx, dword [edi + 0x2c]
mov dword [eax], ecx
mov dword [edi + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
cmp dword [edi], 0
jne case.0x50253c.1
mov edi, dword [esp + 0xc]
mov ecx, dword [edi + 0x30]
mov eax, dword [ecx + 4]
lea edx, [eax + 8]
cmp edx, 0x7f8
ja 0x50237d
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x5023a4
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x504f50
mov ecx, dword [ebx + 0x2c]
mov dword [eax], ecx
mov dword [ebx + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
jmp 0x504f58
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x505094
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
jmp 0x50509d
mov dword [ebx], 2
xor ebp, ebp
mov eax, dword [esp + 4]
mov esi, dword [eax + 0x1c]
mov ecx, ebx
call fcn.004fc770
test esi, esi
je 0x504f90
nop word [eax + eax]
test eax, eax
je 0x504f89
mov ecx, dword [esi]
test ecx, ecx
je 0x504f89
mov edx, dword [ecx + 8]
and edx, 0xfffffffc
or edx, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x504f70
mov eax, dword [esp + 4]
cmp dword [eax + 0x20], 0
js 0x504f9f
cmp dword [ebx], 0
je 0x50500b
mov edx, 0x20
mov ecx, ebx
push 0
push 0x82
push 0
push 1
call fcn.004fb7b0
add esp, 0x10
mov ecx, dword [edi]
cmp dword [ecx], 0
jne 0x504fd5
mov edx, 0x11
push 0
push 2
push 0xc
push 0x40
call fcn.00506ea0
add esp, 0x10
mov ecx, ebx
call fcn.004fc770
test ebp, ebp
je 0x504ff3
test eax, eax
je 0x504ff3
mov ecx, dword [ebp + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], eax
mov edx, 0x20
mov ecx, ebx
push 0
push 1
push dword [edi + 0x40]
push 0x8d
jmp 0x5024e2
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x505025
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x505052
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x502405
mov eax, dword [ebx + 0x30]
mov dword [esi], eax
mov dword [ebx + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x32000
mov eax, dword [ebx + 0x1c]
lea ecx, [ebx + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], esi
mov dword [ebx + 0x1c], esi
add dword [ebx + 0x48], 5
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x502151
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x50217c
mov dword [ebp], 2
xor ebx, ebx
mov ecx, dword [esp]
call fcn.0050c1f0
mov edx, 0x20
mov ecx, ebp
push 0
push 0xc
push dword [esp + 0x10]
push esi
call fcn.004fb7b0
add esp, 0x10
cmp dword [ebp], 0
jne 0x505198
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x5050e1
lea esi, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x50510e
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov esi, eax
test esi, esi
je 0x505191
mov eax, dword [ebp + 0x30]
mov dword [esi], eax
mov dword [ebp + 0x30], esi
mov dword [esi + 4], 0x10
add esi, 8
mov dword [esi], 0
mov dword [esi + 8], 0x30000
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0xc]
test eax, eax
cmovne ecx, eax
mov dword [ecx], esi
mov dword [ebp + 0x1c], esi
add dword [ebp + 0x48], 5
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x505149
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x505170
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x505191
mov ecx, dword [ebp + 0x2c]
mov dword [eax], ecx
mov dword [ebp + 0x2c], eax
mov dword [eax + 4], 2
add eax, 8
mov word [eax], pe_nt_image_headers32
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x505198
mov ecx, dword [esi + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
jmp 0x505198
mov dword [ebp], 2
mov ecx, ebp
call fcn.004fc770
test ebx, ebx
je 0x5051b6
test eax, eax
je 0x5051b6
mov ecx, dword [ebx + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
cmp dword [esp + 8], 0
jne case.0x5025bb.2
mov eax, dword [esp]
mov ecx, dword [eax]
cmp dword [ecx], 0
jne case.0x5025bb.2
mov edx, 0x11
push 0
push 2
push 8
push 0x40
call fcn.00506ea0
add esp, 0x10
nop dword [eax]
mov eax, dword [esp + 4]
mov esi, dword [eax + 0xc]
mov ecx, ebp
call fcn.004fc770
test esi, esi
je case.0x50253c.1
nop word cs:[eax + eax]
test eax, eax
je 0x505219
mov ecx, dword [esi]
test ecx, ecx
je 0x505219
mov edx, dword [ecx + 8]
and edx, 0xfffffffc
or edx, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x505200
mov edi, dword [esp + 4]
mov edi, dword [edi]
test edi, edi
jne 0x5024f0
mov eax, dword [esp]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x18], ecx
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret