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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xac
mov edi, ecx
mov eax, dword [esp + 0xc0]
mov ecx, dword [edi]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x7c], 0
lea ecx, [eax + 0x14]
lea eax, [eax + 0xc]
cmp dword [esp + 0xc4], 0
mov dword [esp + 0x40], eax
cmove ecx, eax
mov dword [esp + 0x6c], ecx
mov eax, dword [edi + 0x74]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x78]
mov dword [esp + 0x50], eax
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x54], ecx
mov ecx, dword [edi + 0xb0]
mov dword [esp + 0x44], ecx
mov ecx, dword [edi + 0xb8]
mov dword [esp + 0x58], ecx
mov ecx, dword [edi + 0xd4]
mov dword [esp + 0x48], ecx
mov ecx, dword [edi + 0xd8]
mov dword [esp + 0x5c], ecx
mov ecx, dword [edi + 0xe0]
mov dword [esp + 0x60], ecx
mov dword [edi + 0x18], 0
movzx ecx, word [edx]
mov ebx, ecx
and ebx, 0xfffe
cmp ebx, 0x92
mov bp, 0x83
cmove bp, cx
lea esi, [edx + 2]
cmovne esi, edx
mov ecx, esi
sub ecx, dword [edi + 4]
mov ebx, dword [eax + ecx*2]
sub esp, 4
lea eax, [esp + 0x84]
mov dword [esp + 0x3c], edi
mov ecx, edi
mov edi, dword [esp + 0xa8]
mov edx, esi
push eax
push 0
push 0
call fcn.005236f0
add esp, 0x10
mov ecx, dword [esp + 0xc0]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], ebx
movzx ecx, word [esi]
mov dword [esp + 0x70], ecx
or ecx, 2
cmp ecx, 0x7f
lea ecx, [esp + 0x7c]
cmovne ecx, dword [esp + 0x6c]
mov dword [esp + 0x9c], ecx
movzx ecx, word [esi + 2]
mov dword [esp + 8], ecx
movzx ecx, bp
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], ecx
cmp ecx, 0x93
mov dword [esp + 0x14], eax
jne 0x51e1cb
mov edx, 0x20
mov ecx, edi
push 0
push 0x82
push 0
push 0xc
call fcn.004fb7b0
add esp, 0x10
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
cmp dword [ecx], 0
jne 0x51e0c6
mov edx, 0x11
push 0
push 2
push 4
push 0x40
call fcn.00506ea0
add esp, 0x10
mov dword [esp + 0x28], 0
cmp dword [edi], 0
mov eax, dword [esp + 0x14]
jne 0x51e1cb
mov edx, 0x11
mov ecx, edi
push 0
push 0xc
push 0
push 0x40
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x51e0fa
or byte [eax + 1], 0x38
mov dword [esp + 0x28], 0
cmp dword [edi], 0
mov eax, dword [esp + 0x14]
jne 0x51e1cb
mov ebp, ebx
mov ebx, dword [edi + 0x30]
mov ecx, dword [ebx + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x51e12b
lea eax, [ebx + ecx + 8]
mov dword [ebx + 4], edx
jmp 0x51e156
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51e463
mov ecx, dword [edi + 0x30]
mov dword [eax], ecx
mov dword [edi + 0x30], eax
mov dword [eax + 4], 0x10
add eax, 8
mov ebx, ebp
mov dword [eax], 0
mov dword [eax + 8], 0
mov edx, dword [edi + 0x1c]
lea ecx, [edi + 0xc]
test edx, edx
cmovne ecx, edx
mov dword [ecx], eax
mov dword [esp + 0x28], eax
mov dword [edi + 0x1c], eax
add dword [edi + 0x48], 6
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x51e197
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x51e1c2
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51e69b
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 [esp + 0x14]
mov dword [esp + 0xc], ebx
test eax, eax
mov dword [esp + 0x78], esi
js 0x51e28b
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x18], ecx
cmp ecx, 1
mov ecx, 3
sbb ecx, 0
mov dword [esp + 0x10], ecx
lea eax, [ecx + eax]
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x38]
mov ebx, dword [esi]
xor ebp, ebp
cmp dword [ebx], 0
jne 0x51e484
mov eax, dword [esp + 0x1c]
lea eax, [eax*4]
mov edx, 0x11
mov ecx, ebx
push 0
push 2
push eax
push 0x40
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x51e236
or byte [eax + 1], 0x28
xor ebp, ebp
cmp dword [ebx], 0
jne 0x51e484
mov edx, 1
mov ecx, ebx
push 0
push 0xa
push 0
push 2
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x51e25f
mov byte [eax], 0x3b
xor ebp, ebp
cmp dword [ebx], 0
jne 0x51e484
mov ebp, dword [ebx + 0x30]
mov ecx, dword [ebp + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x51e3c7
lea eax, [ebp + ecx + 8]
mov dword [ebp + 4], edx
jmp 0x51e3f2
mov ecx, 1
cmp dword [esp + 0x24], 0x83
mov ebp, dword [esp + 0x38]
jne 0x51e2f0
lea eax, [esi + 4]
mov ecx, 0x1e000030
jmp 0x51e2ba
movzx edx, byte [edx + 0x547228]
lea eax, [eax + edx*2]
movzx edx, word [eax]
cmp edx, 0x1c
ja 0x51e2d0
bt ecx, edx
jb 0x51e2b0
nop word [eax + eax]
lea ebx, [edx - 0x76]
movzx ebx, bx
cmp ebx, 2
jb 0x51e2b0
movzx eax, dx
cmp eax, 0x78
jne 0x51e2e7
xor ecx, ecx
jmp 0x51e2ec
mov ecx, 1
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x80]
lea esi, [ecx + 1]
mov dword [esp + 0x18], edx
test edx, edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ecx
cmove esi, ecx
cmp eax, 0xffffffff
jne 0x51e32c
mov edx, 0x20
mov ecx, edi
push 0
push 2
push dword [esp + 0x14]
push 0x8d
call fcn.004fb7b0
add esp, 0x10
mov eax, esi
mov dword [esp + 0x1c], eax
test esi, esi
mov esi, ebp
je 0x51e7bb
mov ebx, dword [esi]
xor ebp, ebp
cmp dword [ebx], 0
jne 0x51e74a
mov eax, dword [esp + 0x1c]
lea eax, [eax*4]
mov edx, 0x11
mov ecx, ebx
push 0
push 2
push eax
push 0x40
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x51e372
or byte [eax + 1], 0x28
xor ebp, ebp
cmp dword [ebx], 0
jne 0x51e74a
mov edx, 1
mov ecx, ebx
push 0
push 0xa
push 0
push 2
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x51e39b
mov byte [eax], 0x3b
xor ebp, ebp
cmp dword [ebx], 0
jne 0x51e74a
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x51e6ae
lea ebp, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x51e6d8
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51e47c
mov ecx, dword [ebx + 0x30]
mov dword [eax], ecx
mov dword [ebx + 0x30], eax
mov dword [eax + 4], 0x10
add eax, 8
mov dword [eax], 0
mov dword [eax + 8], 0x4000
mov edx, dword [ebx + 0x1c]
lea ecx, [ebx + 0xc]
test edx, edx
cmovne ecx, edx
mov dword [ecx], eax
mov dword [esp + 0x20], eax
mov dword [ebx + 0x1c], eax
add dword [ebx + 0x48], 6
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x51e431
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x51e458
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51e47c
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
mov ebp, dword [esp + 0x20]
jmp 0x51e484
mov dword [edi], 2
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x14]
mov ebx, ebp
jmp 0x51e1cb
mov dword [ebx], 2
xor ebp, ebp
mov ebx, dword [esi]
cmp dword [ebx], 0
jne 0x51e4f3
mov esi, dword [ebx + 0x30]
mov ecx, dword [esi + 4]
lea edx, [ecx + 0xc]
cmp edx, 0x7f8
ja 0x51e4a5
lea eax, [esi + ecx + 8]
mov dword [esi + 4], edx
jmp 0x51e4d0
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51e58d
mov ecx, dword [ebx + 0x30]
mov dword [eax], ecx
mov dword [ebx + 0x30], eax
mov dword [eax + 4], 0xc
add eax, 8
mov dword [eax], ebp
mov esi, eax
mov ecx, ebx
call fcn.004fc770
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0xc0]
mov dword [esi + 8], eax
mov dword [ecx + 0xc0], esi
mov esi, ecx
mov edx, 0x20
mov ecx, edi
mov ebx, dword [esp + 0xc]
push ebx
push 0x8d
push 0
push 1
call fcn.004fb7b0
add esp, 0x10
cmp dword [edi], 0
jne 0x51e5a5
mov eax, dword [esp + 0x1c]
lea ebp, [eax*4]
mov edx, 1
mov ecx, edi
push ebp
push 0x82
push 0
push 3
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x51e54a
mov byte [eax], 0x8d
mov ebx, dword [esp + 0xc]
jmp 0x51e5a5
cmp dword [edi], 4
mov ebx, dword [esp + 0xc]
jne 0x51e5a5
mov edx, 1
mov ecx, edi
push 0
push 3
push 0
push 2
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x51e59c
mov byte [eax], 0x89
mov ebx, dword [esp + 0xc]
mov edx, 0x11
mov ecx, edi
push 0
push 3
push ebp
push 0x40
call fcn.00506ea0
add esp, 0x10
jmp 0x51e5a5
mov dword [ebx], 2
mov esi, dword [esp + 0x38]
jmp 0x51e4f3
cmp dword [edi], 0
mov ebx, dword [esp + 0xc]
je 0x51e575
mov edx, 0x20
mov ecx, edi
push 0
push 3
push ebx
push 0x8d
call fcn.004fb7b0
add esp, 0x10
cmp dword [esp + 0x18], 0
je 0x51e643
mov edx, 0x20
mov ecx, edi
push dword [esi + 0x40]
push 0x8d
push 0
push 3
call fcn.004fb7b0
add esp, 0x10
mov edx, 0x20
mov ecx, edi
push 0
push 0xc
push 0
push 0x82
call fcn.004fb7b0
add esp, 0x10
mov edx, 0x20
mov ecx, edi
push 0
push 1
push 8
push 0x82
call fcn.004fb7b0
add esp, 0x10
mov edx, 0x20
mov ecx, edi
push 0
push 3
push 4
push 0x82
call fcn.004fb7b0
add esp, 0x10
mov edx, 0x20
mov ecx, edi
push 0
push 0x40
push dword [esi + 0x40]
push 0x8d
jmp 0x51e66f
mov edx, 0x20
mov ecx, edi
push 0
push 0xc
push 0
push 0x82
call fcn.004fb7b0
add esp, 0x10
mov edx, 0x20
mov ecx, edi
push 0
push 1
push 4
push 0x82
call fcn.004fb7b0
add esp, 0x10
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
dec ebp
sub esp, 4
mov ecx, esi
mov edx, dword [esp + 0x7c]
push 0
push ebp
push 0
call fcn.00523b80
add esp, 0x10
jmp 0x51e84c
mov dword [edi], 2
mov dword [esp + 0x28], 0
jmp 0x51e1c7
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov ebp, eax
test ebp, ebp
je 0x51e742
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], 0x4000
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], 6
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x51e714
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x51e73b
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51e742
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 0x51e74a
mov dword [ebx], 2
xor ebp, ebp
mov ebx, dword [esi]
cmp dword [ebx], 0
jne 0x51e7bb
mov dword [esp + 0x2c], ebp
mov ebp, dword [ebx + 0x30]
mov ecx, dword [ebp + 4]
lea edx, [ecx + 0xc]
cmp edx, 0x7f8
ja 0x51e76f
lea eax, [ebp + ecx + 8]
mov dword [ebp + 4], edx
jmp 0x51e79a
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51f2f3
mov ecx, dword [ebx + 0x30]
mov dword [eax], ecx
mov dword [ebx + 0x30], eax
mov dword [eax + 4], 0xc
add eax, 8
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
mov ebp, eax
mov ecx, ebx
call fcn.004fc770
mov dword [ebp + 4], eax
mov eax, dword [esi + 0xc0]
mov dword [ebp + 8], eax
mov dword [esi + 0xc0], ebp
cmp dword [esp + 0x18], 0
je 0x51e7dd
mov edx, 0x20
mov ecx, edi
push dword [esi + 0x40]
push 0x8d
push 0
push 1
call fcn.004fb7b0
add esp, 0x10
cmp dword [esp + 0x1c], 0
je 0x51e7fe
mov edx, 0x20
mov ecx, edi
push 0
push 0xc
push 0
push 0x82
call fcn.004fb7b0
add esp, 0x10
cmp dword [esp + 0x18], 0
mov ebx, dword [esp + 0x10]
je 0x51e844
mov edx, 0x20
mov ecx, edi
push 0
push 0x40
push dword [esi + 0x40]
push 0x8d
call fcn.004fb7b0
add esp, 0x10
mov edx, 0x20
mov ecx, edi
push 0
push 1
push 4
push 0x82
call fcn.004fb7b0
add esp, 0x10
mov ebx, dword [esp + 0x20]
jmp 0x51e84c
mov dword [esp + 0x18], 0
mov eax, ebx
neg eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x84], 0
movzx ecx, word [esp + 0x70]
cmp ecx, 0x80
je 0x51e8a2
mov eax, 1
cmp ecx, 0x7e
jne 0x51e8bf
mov dword [esi + 0x74], 1
mov dword [esi + 0xb0], 0
mov dword [esi + 0xd4], 0
xor eax, eax
cmp dword [esp + 0xc4], 0
mov edx, ecx
setne byte [esp + 0x10]
mov dword [esi + 0x78], eax
cmp dword [esp + 0x18], 0
sete al
shl al, 2
movzx eax, al
or eax, 0xfffffff8
mov dword [esp + 0x3c], eax
shl dword [esp + 0x64], 2
mov eax, dword [esp + 0x14]
lea ebp, [eax*4]
mov dword [esp + 0x98], ebp
xor ebp, 0xfffffffc
mov dword [esp + 0x68], ebp
mov ecx, esi
lea esi, [ebx + eax]
mov ebp, esi
mov dword [esp + 0x34], ebp
mov esi, ecx
neg ebp
shl ebp, 2
mov dword [esp + 0xa0], ebp
mov ecx, 0xfffffffe
sub ecx, eax
shl ecx, 2
mov dword [esp + 0xa8], ecx
mov dword [esp + 0x1c], edx
cmp edx, 0x80
setne cl
or cl, byte [esp + 0x10]
mov byte [esp + 0x2c], cl
mov ecx, ebx
mov ebp, dword [esp + 0x78]
mov edx, dword [esp + 8]
lea ebx, [ebp + edx*2]
mov dword [esi + 0xd8], 0
mov dword [esp + 0x10], ecx
lea ecx, [ecx*4]
mov dword [esp + 0x30], ecx
lea ecx, [edi + 0x30]
mov dword [esp + 8], ecx
lea ecx, [edi + 0xc]
mov dword [esp + 0x20], ecx
lea eax, [eax*4 + 4]
mov dword [esp + 0x74], eax
movzx eax, word [ebp]
jmp 0x51eb7d
movzx eax, word [ebx]
cmp eax, 0x77
je 0x51eb70
jmp 0x51f024
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x51e9cd
lea ebp, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x51e9fd
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov ebp, eax
test ebp, ebp
je 0x51eac8
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
mov dword [ebp], eax
mov dword [ecx], ebp
mov dword [ebp + 4], 0x10
add ebp, 8
mov dword [ebp], 0
mov dword [ebp + 8], 0x30000
mov eax, dword [edi + 0x1c]
test eax, eax
cmove eax, dword [esp + 0x20]
mov dword [eax], ebp
mov dword [edi + 0x1c], ebp
add dword [edi + 0x48], 5
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x51ea38
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x51ea5f
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51eac8
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 0x51ef77
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
lea edx, [eax + 8]
cmp edx, 0x7f8
ja 0x51ea8a
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x51eab3
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51eac8
mov edx, dword [esp + 8]
mov ecx, dword [edx]
mov dword [eax], ecx
mov dword [edx], eax
mov dword [eax + 4], 8
add eax, 8
mov edx, dword [esp + 0x9c]
mov ecx, dword [edx]
mov dword [eax + 4], ecx
mov dword [eax], ebp
mov dword [edx], eax
jmp 0x51ef77
mov dword [edi], 2
jmp 0x51ef77
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51eb64
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 0x51edc3
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
lea edx, [eax + 8]
cmp edx, 0x7f8
ja 0x51eb25
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x51eb4e
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51eb64
mov edx, dword [esp + 8]
mov ecx, dword [edx]
mov dword [eax], ecx
mov dword [edx], eax
mov dword [eax + 4], 8
add eax, 8
mov ecx, dword [esi + 0xec]
mov dword [eax + 4], ecx
mov dword [eax], ebp
mov dword [esi + 0xec], eax
jmp 0x51edc3
mov dword [edi], 2
jmp 0x51edc3
movzx eax, word [ebx + 2]
mov ebp, ebx
lea ebx, [ebx + eax*2]
mov ax, 0x77
cmp dword [esp + 0x10], 0
mov dword [esi + 0xb8], 0
mov dword [esi + 0xe0], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
jle 0x51ebd0
movzx eax, ax
cmp eax, 0x77
jne 0x51ebd0
mov edx, 0x20
mov ecx, edi
push 0
push 0x82
push 0
push 0xc
call fcn.004fb7b0
add esp, 0x10
mov dword [esp + 0x94], ebp
add ebp, 4
sub esp, 8
mov ecx, esi
mov edx, ebp
lea eax, [esp + 0x8c]
push eax
push ebx
call fcn.004fc850
add esp, 0x10
cmp dword [edi], 0
jne 0x51efc6
mov ecx, edi
call fcn.004fc770
mov dword [esi + 0xb8], eax
mov ecx, dword [esi + 0xe0]
test ecx, ecx
je 0x51ec40
nop word cs:[eax + eax]
test eax, eax
je 0x51ec39
mov edx, dword [ecx]
test edx, edx
je 0x51ec39
mov ebp, dword [edx + 8]
and ebp, 0xfffffffc
or ebp, 1
mov dword [edx + 8], ebp
mov dword [edx + 0xc], eax
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x51ec20
mov eax, dword [esp + 0x14]
test eax, eax
js 0x51ec80
cmp dword [esp + 0x1c], 0x7e
jne 0x51ecc0
cmp dword [esp + 0xc4], 0
je 0x51ecc7
cmp dword [edi], 0
je 0x51ed75
cmp dword [esp + 0x18], 0
jne 0x51eda5
jmp 0x51edc3
cmp eax, 0xffffffff
je 0x51ed3a
cmp dword [esp + 0x10], 0
jle 0x51ed56
mov ecx, dword [esi]
cmp dword [ecx], 0
jne 0x51ed56
mov edx, 0x11
push 0
push 2
push dword [esp + 0x38]
push 0x40
call fcn.00506ea0
jmp 0x51ed53
cmp byte [esp + 0x2c], 0
jne 0x51ec59
mov edx, 0x20
mov ecx, edi
push dword [esp + 0xc]
push 0x8d
push 0
push 2
call fcn.004fb7b0
add esp, 0x10
cmp dword [esp + 0x18], 0
je 0x51ed0d
mov edx, 0x20
mov ecx, edi
push dword [esp + 0xa8]
push 0x82
push dword [esi + 0x40]
push 0x8d
call fcn.004fb7b0
add esp, 0x10
cmp dword [edi], 0
jne 0x51edc3
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x51eea2
lea ebp, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x51eed2
mov edx, 0x20
mov ecx, edi
push dword [esp + 0xc]
push 0x8d
push 0
push 2
call fcn.004fb7b0
add esp, 0x10
cmp dword [esp + 0x18], 0
je 0x51edc3
mov edx, 0x20
mov ecx, edi
push 0xfffffffffffffffc
push 0x82
push dword [esi + 0x40]
push 0x8d
jmp 0x51edbb
mov eax, dword [edi + 0x58]
add eax, dword [esp + 0xc]
sub esp, 8
mov edx, 0x2d2b2928
mov ecx, edi
push dword [esp + 0x7c]
push 0x40
push eax
push 0x8d
push 0
push 2
call fcn.00506b20
add esp, 0x20
cmp dword [esp + 0x18], 0
je 0x51edc3
mov edx, 0x20
mov ecx, edi
push 0xfffffffffffffffc
push 0x82
push dword [esi + 0x40]
push 0x8d
call fcn.004fb7b0
add esp, 0x10
mov eax, dword [esp + 0x1c]
cmp eax, 0x80
je 0x51edd7
cmp eax, 0x7e
jne 0x51ef6e
cmp dword [esp + 0xc4], 0
je 0x51ee10
cmp dword [esp + 0x10], 0
jle 0x51ef6e
mov edx, 0x20
mov ecx, edi
push dword [esp + 0x3c]
push 0x82
push 0
push 0xc
jmp 0x51ef66
cmp dword [esp + 0x24], 0x92
jne 0x51ee79
cmp dword [esp + 0x14], 0
js 0x51ef14
mov edx, 0x20
mov ecx, edi
push dword [esp + 0x68]
push 0x82
push 0
push 1
call fcn.004fb7b0
add esp, 0x10
mov edx, 0x20
mov ecx, edi
push dword [esp + 0xa0]
push 0x82
push 0
push 0xc
call fcn.004fb7b0
add esp, 0x10
mov edx, 0x20
mov ecx, edi
push 0
push 1
push dword [esp + 0x14]
push 0x8d
jmp 0x51ef28
cmp dword [esp + 0x14], 0
js 0x51ef6e
mov edx, 0x20
mov ecx, edi
push dword [esp + 0x68]
push 0x82
push dword [esp + 0x14]
push 0x8d
jmp 0x51ef66
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov ebp, eax
test ebp, ebp
je 0x51eb64
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
mov dword [ebp], eax
mov dword [ecx], ebp
mov dword [ebp + 4], 0x10
add ebp, 8
mov dword [ebp], 0
mov dword [ebp + 8], 0x32000
mov eax, dword [edi + 0x1c]
test eax, eax
cmove eax, dword [esp + 0x20]
mov dword [eax], ebp
mov dword [edi + 0x1c], ebp
add dword [edi + 0x48], 5
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x51ead3
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x51eafa
mov edx, 0x20
mov ecx, edi
push dword [esp + 0x64]
push 0x82
push 0
push 0xc
call fcn.004fb7b0
add esp, 0x10
cmp dword [edi], 0
jne 0x51ef54
mov edx, 0x11
mov ecx, edi
push 0
push 2
push 4
push 0x40
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x51ef54
or byte [eax + 1], 0x28
mov edx, 0x20
mov ecx, edi
push 0
push 0x40
push 0
push 0x82
call fcn.004fb7b0
add esp, 0x10
cmp dword [edi], 0
je 0x51e9b0
mov edx, dword [esp + 0x8c]
mov ecx, esi
call fcn.005020c0
cmp dword [edi], 0
jne 0x51efc6
mov ebp, dword [esp + 0x90]
mov ecx, edi
call fcn.004fc770
test ebp, ebp
je 0x51e990
test eax, eax
je 0x51efba
mov ecx, dword [ebp]
test ecx, ecx
je 0x51efba
mov edx, dword [ecx + 8]
and edx, 0xfffffffc
or edx, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ebp, dword [ebp + 4]
test ebp, ebp
jne 0x51efa0
jmp 0x51e990
mov eax, dword [esp + 0x1c]
cmp eax, 0x80
je 0x51efd6
cmp eax, 0x7e
jne 0x51eff1
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0xb0], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0xd4], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x78], eax
mov eax, dword [esp + 0x54]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x58]
mov dword [esi + 0xb8], eax
mov eax, dword [esp + 0x5c]
mov dword [esi + 0xd8], eax
mov eax, dword [esp + 0x60]
mov dword [esi + 0xe0], eax
xor ebx, ebx
jmp 0x51ff2b
mov eax, dword [esp + 0x1c]
cmp eax, 0x80
je 0x51f034
cmp eax, 0x7e
jne 0x51f042
mov eax, dword [esi + 0xd4]
mov dword [esi + 0xd8], eax
jmp 0x51f048
mov eax, dword [esi + 0xd8]
mov ebp, dword [esp + 0x24]
test eax, eax
je 0x51f37a
xor eax, eax
cmp dword [edi], 0
jne 0x51f11f
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x51f07e
lea ecx, [eax + ecx + 8]
mov dword [eax + 4], edx
mov eax, ecx
jmp 0x51f0ab
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51f117
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov dword [ecx], eax
mov dword [eax + 4], 0x10
add eax, 8
mov dword [eax], 0
mov dword [eax + 8], 0x30000
mov ecx, dword [edi + 0x1c]
test ecx, ecx
cmove ecx, dword [esp + 0x20]
mov dword [ecx], eax
mov ebp, eax
mov dword [edi + 0x1c], eax
add dword [edi + 0x48], 5
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x51f0e7
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x51f10e
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51f117
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, ebp
jmp 0x51f11f
mov dword [edi], 2
xor eax, eax
mov dword [esp + 0x2c], eax
mov ebp, dword [esi + 0xd8]
mov ecx, edi
call fcn.004fc770
test ebp, ebp
je 0x51f161
nop word cs:[eax + eax]
test eax, eax
je 0x51f15a
mov ecx, dword [ebp]
test ecx, ecx
je 0x51f15a
mov edx, dword [ecx + 8]
and edx, 0xfffffffc
or edx, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ebp, dword [ebp + 4]
test ebp, ebp
jne 0x51f140
cmp dword [esp + 0x14], 0
js 0x51f1ae
mov edx, 0x20
mov ecx, edi
push dword [esp + 0xc]
push 0x8d
push 0
push 2
call fcn.004fb7b0
add esp, 0x10
cmp dword [edi], 0
mov ebp, dword [esp + 0x24]
jne 0x51f358
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x51f1e9
lea ecx, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x51f21a
cmp dword [edi], 0
mov ebp, dword [esp + 0x24]
jne 0x51f358
mov eax, dword [edi + 0x58]
add eax, dword [esp + 0xc]
sub esp, 8
mov edx, 0x2d2b2928
mov ecx, edi
push dword [esp + 0x38]
push 0x40
push eax
push 0x8d
push 0
push 2
call fcn.00506b20
add esp, 0x20
jmp 0x51f358
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51f352
mov edx, eax
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
mov dword [edx], eax
mov dword [ecx], edx
mov ecx, edx
mov dword [ecx + 4], 0x10
add ecx, 8
mov dword [ecx], 0
mov dword [ecx + 8], 0x32000
mov eax, dword [edi + 0x1c]
test eax, eax
cmove eax, dword [esp + 0x20]
mov dword [eax], ecx
mov dword [esp + 0x3c], ecx
mov dword [edi + 0x1c], ecx
add dword [edi + 0x48], 5
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x51f258
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x51f283
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51f352
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 0x51f358
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
lea edx, [ecx + 8]
cmp edx, 0x7f8
ja 0x51f309
lea ebp, [eax + ecx + 8]
mov dword [eax + 4], edx
mov edx, dword [esi + 0xec]
mov dword [eax + ecx + 0xc], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + ecx + 8], edx
mov dword [esi + 0xec], ebp
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
lea eax, [eax*4]
mov edx, 0x11
mov ecx, edi
push 0
push 2
push eax
push 0x40
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x51f358
or byte [eax + 1], 0x28
jmp 0x51f358
mov dword [ebx], 2
cmp dword [esp + 0x18], 0
jne 0x51e7c2
jmp 0x51e7dd
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51f352
mov ecx, dword [edi + 0x30]
mov dword [eax], ecx
mov dword [edi + 0x30], eax
mov dword [eax + 4], 8
mov ecx, eax
add ecx, 8
mov edx, dword [esi + 0xec]
cmp dword [edi], 0
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], edx
mov dword [esi + 0xec], ecx
jne 0x51f358
jmp 0x51f2c8
mov dword [edi], 2
mov ecx, edi
call fcn.004fc770
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x51f37a
test eax, eax
je 0x51f37a
mov ecx, dword [edx + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
cmp dword [esp + 0x18], 0
je 0x51f39f
mov edx, 0x20
mov ecx, edi
push 4
push 0x82
push dword [esi + 0x40]
push 0x8d
call fcn.004fb7b0
add esp, 0x10
mov eax, dword [esp + 0x70]
or eax, 2
movzx eax, ax
cmp eax, 0x7f
jne 0x51f453
cmp dword [esp + 0x10], 0
setg al
cmp dword [esp + 0xc4], 0
setne cl
cmp ebp, 0x92
je 0x51f4cd
and cl, al
jne 0x51f4cd
cmp dword [esp + 0x14], 0
js 0x51f4f2
mov eax, dword [esp + 0x30]
add eax, 0xfffffffc
mov edx, 0x20
mov ecx, edi
push eax
push 0x82
push 0
push 1
call fcn.004fb7b0
add esp, 0x10
cmp ebp, 0x92
mov ecx, dword [esi]
mov eax, dword [ecx]
jne 0x51f535
test eax, eax
jne 0x51f437
mov eax, dword [esp + 0x34]
lea eax, [eax*4 - 4]
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 0x40
push 0
push 0x82
call fcn.004fb7b0
jmp 0x51f551
cmp dword [esp + 0x14], 0
js 0x51f5a1
mov edx, 0x20
mov ecx, edi
push 0
push 0x82
push 0
push 0xc
call fcn.004fb7b0
add esp, 0x10
mov eax, dword [esp + 0x30]
add eax, 0xfffffffc
mov edx, 0x20
mov ecx, edi
push eax
push 0x82
push 0
push 1
call fcn.004fb7b0
add esp, 0x10
cmp ebp, 0x83
mov ecx, dword [esi]
mov eax, dword [ecx]
jne 0x51f69a
test eax, eax
jne 0x51f6d7
mov eax, dword [esp + 0x34]
shl eax, 2
mov edx, 0x11
push 0
push 2
push eax
push 0x40
call fcn.00506ea0
jmp 0x51f6d4
mov edx, 0x20
mov ecx, edi
push 0
push 0x82
push 0
push 0xc
call fcn.004fb7b0
add esp, 0x10
cmp dword [esp + 0x14], 0
jns 0x51f3e4
cmp ebp, 0x92
jne 0x51f600
cmp dword [esp + 0x10], 2
jne 0x51f521
mov ecx, dword [esi]
cmp dword [ecx], 0
jne 0x51f521
mov edx, 0x11
push 0
push 2
push 4
push 0x40
call fcn.00506ea0
add esp, 0x10
mov edx, 0x20
mov ecx, edi
push 0
push 0x40
push 0
push 0x82
jmp 0x51f568
test eax, eax
jne 0x51f554
mov eax, dword [esp + 0x34]
shl eax, 2
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 [esp + 0x14]
push 0x8d
call fcn.004fb7b0
add esp, 0x10
xor eax, eax
cmp dword [edi], 0
jne 0x51f72a
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x51f62f
lea ecx, [eax + ecx + 8]
mov dword [eax + 4], edx
mov eax, ecx
jmp 0x51f65c
cmp dword [esp + 0x10], 0
jle 0x51f5c2
mov edx, 0x20
mov ecx, edi
push 0
push 0x82
push 0
push 0xc
call fcn.004fb7b0
add esp, 0x10
cmp ebp, 0x83
jne 0x51f767
cmp dword [esp + 0x10], 0
jle 0x51f7bf
mov ecx, dword [esi]
cmp dword [ecx], 0
jne 0x51f7bf
mov edx, 0x11
push 0
push 2
push dword [esp + 0x38]
push 0x40
call fcn.00506ea0
add esp, 0x10
jmp 0x51f7bf
cmp dword [esp + 0x10], 0
jle 0x51f570
mov ecx, dword [esi]
cmp dword [ecx], 0
jne 0x51f570
mov edx, 0x11
push 0
push 2
push dword [esp + 0x38]
push 0x40
call fcn.00506ea0
jmp 0x51f56d
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51f722
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov dword [ecx], eax
mov dword [eax + 4], 0x10
add eax, 8
mov dword [eax], 0
mov dword [eax + 8], 0x30000
mov ecx, dword [edi + 0x1c]
test ecx, ecx
cmove ecx, dword [esp + 0x20]
mov dword [ecx], eax
mov dword [esp + 0x18], eax
mov dword [edi + 0x1c], eax
add dword [edi + 0x48], 5
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x51f6f0
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x51f717
test eax, eax
jne 0x51f6bd
mov eax, dword [esp + 0x34]
lea eax, [eax*4 - 4]
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 0x40
push 0
push 0x82
call fcn.004fb7b0
add esp, 0x10
mov edx, 0x20
mov ecx, edi
push 0
push 1
push dword [esp + 0x14]
push 0x8d
jmp 0x51f79c
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51f722
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 [esp + 0x18]
jmp 0x51f72a
mov dword [edi], 2
xor eax, eax
mov dword [esp + 0x18], eax
cmp ebp, 0x92
je 0x51f88e
cmp dword [edi], 0
jne 0x51f88e
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
lea edx, [eax + 8]
cmp edx, 0x7f8
ja 0x51f850
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x51f87d
cmp dword [esp + 0x10], 2
jne 0x51f78a
mov ecx, dword [esi]
cmp dword [ecx], 0
jne 0x51f78a
mov edx, 0x11
push 0
push 2
push 4
push 0x40
call fcn.00506ea0
add esp, 0x10
mov edx, 0x20
mov ecx, edi
push 0
push 0x40
push 0
push 0x82
call fcn.004fb7b0
add esp, 0x10
cmp ebp, 0x92
jne 0x51f7bf
mov ecx, edi
call fcn.004fc770
mov ecx, dword [esp + 0xc0]
mov dword [ecx + 0x20], eax
jmp 0x51f800
cmp ebp, 0x93
jne 0x51f7f4
cmp dword [edi], 0
je 0x51fb97
mov ecx, edi
call fcn.004fc770
mov edx, dword [esp + 0x28]
test edx, edx
je 0x51f800
test eax, eax
je 0x51f800
mov ecx, dword [edx + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
jmp 0x51f800
cmp ebp, 0x83
je 0x51fed1
mov eax, dword [esp + 0x40]
mov ebp, dword [eax]
mov ecx, edi
call fcn.004fc770
test ebp, ebp
je 0x51f841
nop word cs:[eax + eax]
test eax, eax
je 0x51f83a
mov ecx, dword [ebp]
test ecx, ecx
je 0x51f83a
mov edx, dword [ecx + 8]
and edx, 0xfffffffc
or edx, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ebp, dword [ebp + 4]
test ebp, ebp
jne 0x51f820
mov eax, dword [esp + 0x40]
mov dword [eax], 0
jmp 0x51fed1
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51fc78
mov edx, dword [esp + 8]
mov ecx, dword [edx]
mov dword [eax], ecx
mov dword [edx], eax
mov dword [eax + 4], 8
add eax, 8
mov edx, dword [esp + 0x6c]
mov ecx, dword [edx]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [edx], eax
mov ebp, dword [esp + 0x7c]
mov ecx, edi
call fcn.004fc770
test ebp, ebp
je 0x51f8c1
nop dword [eax]
test eax, eax
je 0x51f8ba
mov ecx, dword [ebp]
test ecx, ecx
je 0x51f8ba
mov edx, dword [ecx + 8]
and edx, 0xfffffffc
or edx, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ebp, dword [ebp + 4]
test ebp, ebp
jne 0x51f8a0
cmp dword [esp + 0x14], 0
js 0x51f929
mov ebp, dword [esp + 0x24]
cmp ebp, 0x83
mov eax, dword [edi]
jne 0x51f9aa
test eax, eax
jne 0x51f907
mov eax, dword [edi + 0x58]
add eax, dword [esp + 0xc]
sub esp, 8
mov edx, 0x2d2b2928
mov ecx, edi
push dword [esp + 0x7c]
push 0x40
push eax
push 0x8d
push 0
push 2
call fcn.00506b20
add esp, 0x20
mov eax, 1
sub eax, dword [esp + 0x10]
shl eax, 2
mov edx, 0x20
mov ecx, edi
push eax
push 0x82
push 0
push 0xc
jmp 0x51faa9
cmp dword [esp + 0x10], 0
mov ebp, dword [esp + 0x24]
jle 0x51f950
mov edx, 0x20
mov ecx, edi
push dword [esp + 0x64]
push 0x82
push 0
push 0xc
call fcn.004fb7b0
add esp, 0x10
cmp ebp, 0x92
jne 0x51fa29
cmp dword [edi], 0
jne 0x51f980
mov edx, 0x11
mov ecx, edi
push 0
push 2
push 4
push 0x40
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x51f980
or byte [eax + 1], 0x28
cmp dword [esp + 0x10], 2
jne 0x51fab9
mov edx, 0x20
mov ecx, edi
push 0
push 0xc
push 0
push 0x82
call fcn.004fb7b0
add esp, 0x10
jmp 0x51fab9
test eax, eax
jne 0x51f9e5
mov eax, dword [esp + 0x98]
add eax, 8
mov ecx, dword [edi + 0x58]
add ecx, dword [esp + 0xc]
mov dword [esp + 0x2c], ecx
sub esp, 8
mov edx, 0x2d2b2928
mov ecx, edi
push eax
push 0x40
push dword [esp + 0x3c]
push 0x8d
push 0
push 2
call fcn.00506b20
add esp, 0x20
mov edx, 0x20
mov ecx, edi
push 0
push 0x82
push 0
push 0xc
call fcn.004fb7b0
add esp, 0x10
cmp dword [esp + 0x10], 2
jne 0x51fa81
cmp ebp, 0x93
jne 0x51fab1
mov edx, 0x20
mov ecx, edi
push 0
push 0x40
push 0
push 0x82
jmp 0x51faa9
cmp ebp, 0x93
jne 0x51fed1
cmp dword [edi], 0
jne 0x51fa59
mov edx, 0x11
mov ecx, edi
push 0
push 2
push 4
push 0x40
call fcn.00506ea0
add esp, 0x10
test eax, eax
je 0x51fa59
or byte [eax + 1], 0x28
mov edx, 0x20
mov ecx, edi
push 0
push 0x40
push 0
push 0x82
call fcn.004fb7b0
add esp, 0x10
cmp dword [edi], 0
jne 0x51fb03
jmp 0x51fb7a
cmp ebp, 0x92
mov eax, 0xc
mov ebp, 0x40
cmove ebp, eax
mov edx, 0x20
mov ecx, edi
push 0
push ebp
mov ebp, dword [esp + 0x2c]
push 0
push 0x82
call fcn.004fb7b0
add esp, 0x10
cmp ebp, 0x92
jne 0x51faf2
mov ecx, edi
call fcn.004fc770
mov ecx, dword [esp + 0xc0]
mov dword [ecx + 0x20], eax
mov edx, dword [esp + 0x18]
test edx, edx
je 0x51fed1
test eax, eax
je 0x51fed1
mov ecx, dword [edx + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
jmp 0x51fed1
cmp ebp, 0x93
jne 0x51fed1
cmp dword [edi], 0
je 0x51fb7a
mov ecx, edi
call fcn.004fc770
mov edx, dword [esp + 0x28]
test edx, edx
je 0x51fb25
test eax, eax
je 0x51fb25
mov ecx, dword [edx + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
cmp dword [esp + 0x14], 0
js 0x51fe9c
mov edx, 0x20
mov ecx, edi
mov ebp, dword [esp + 0xc]
push ebp
push 0x8d
push 0
push 2
call fcn.004fb7b0
add esp, 0x10
cmp dword [edi], 0
jne 0x51fe7e
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x51fc8e
lea ebp, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x51fcbe
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x51fbbb
lea ebp, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x51fbeb
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
lea edx, [ecx + 0x10]
cmp edx, 0x7f8
ja 0x51fd06
lea ebp, [eax + ecx + 8]
mov dword [eax + 4], edx
jmp 0x51fd36
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov ebp, eax
test ebp, ebp
je 0x51fc83
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
mov dword [ebp], eax
mov dword [ecx], ebp
mov dword [ebp + 4], 0x10
add ebp, 8
mov dword [ebp], 0
mov dword [ebp + 8], 0x30000
mov eax, dword [edi + 0x1c]
test eax, eax
cmove eax, dword [esp + 0x20]
mov dword [eax], ebp
mov dword [edi + 0x1c], ebp
add dword [edi + 0x48], 5
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x51fc26
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x51fc4d
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51fc83
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 [esp + 0xc0]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x51fb03
mov ecx, dword [ebp + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], eax
jmp 0x51fb03
mov dword [edi], 2
jmp 0x51f88e
mov dword [edi], 2
jmp 0x51fb03
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov ebp, eax
test ebp, ebp
je 0x51fe74
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
mov dword [ebp], eax
mov dword [ecx], ebp
mov dword [ebp + 4], 0x10
add ebp, 8
mov dword [ebp], 0
mov dword [ebp + 8], 0x32000
mov eax, dword [edi + 0x1c]
test eax, eax
mov ecx, dword [esp + 0x20]
cmovne ecx, eax
mov dword [ecx], ebp
mov dword [edi + 0x1c], ebp
add dword [edi + 0x48], 5
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x51fd76
mov dword [esp + 0x10], ebp
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x51fda5
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
mov ebp, eax
test ebp, ebp
je 0x51fe2d
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
mov dword [ebp], eax
mov dword [ecx], ebp
mov dword [ebp + 4], 0x10
add ebp, 8
mov dword [ebp], 0
mov dword [ebp + 8], 0x30000
mov eax, dword [edi + 0x1c]
test eax, eax
mov ecx, dword [esp + 0x20]
cmovne ecx, eax
mov dword [ecx], ebp
mov dword [edi + 0x1c], ebp
add dword [edi + 0x48], 5
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx + 4]
lea edx, [eax + 2]
cmp edx, 0xff8
ja 0x51fddb
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x51fe02
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51fe74
mov dword [esp + 0x10], ebp
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
mov ebp, dword [esp + 0xc]
jne 0x51fe7e
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
lea edx, [eax + 8]
cmp edx, 0x7f8
mov ebp, dword [esp + 0x10]
ja 0x51fe38
lea eax, [ecx + eax + 8]
mov dword [ecx + 4], edx
jmp 0x51fe61
sub esp, 0xc
push 0x1000
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51fe2d
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 [esp + 0xc0]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x51f7d0
mov ecx, dword [ebp + 8]
and ecx, 0xfffffffc
or ecx, 1
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], eax
jmp 0x51f7d0
mov dword [edi], 2
jmp 0x51f7d0
sub esp, 0xc
push 0x800
call dword [0x545970]
add esp, 0x10
test eax, eax
je 0x51fe74
mov edx, dword [esp + 8]
mov ecx, dword [edx]
mov dword [eax], ecx
mov dword [edx], eax
mov dword [eax + 4], 8
add eax, 8
mov ecx, dword [esi + 0xec]
mov dword [eax + 4], ecx
mov dword [eax], ebp
mov dword [esi + 0xec], eax
jmp 0x51fe7a
mov dword [edi], 2
mov ebp, dword [esp + 0xc]
mov edx, 0x20
mov ecx, edi
push dword [esp + 0x68]
push 0x82
push ebp
push 0x8d
call fcn.004fb7b0
add esp, 0x10
mov eax, dword [esp + 0x40]
mov ebp, dword [eax]
mov ecx, edi
call fcn.004fc770
test ebp, ebp
je 0x51fed1
nop dword [eax]
test eax, eax
je 0x51feca
mov ecx, dword [ebp]
test ecx, ecx
je 0x51feca
mov edx, dword [ecx + 8]
and edx, 0xfffffffc
or edx, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ebp, dword [ebp + 4]
test ebp, ebp
jne 0x51feb0
mov eax, dword [esp + 0x1c]
cmp eax, 0x80
je 0x51fee1
cmp eax, 0x7e
jne 0x51fefc
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0xb0], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0xd4], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x78], eax
mov eax, dword [esp + 0x54]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x58]
mov dword [esi + 0xb8], eax
mov eax, dword [esp + 0x5c]
mov dword [esi + 0xd8], eax
mov eax, dword [esp + 0x60]
mov dword [esi + 0xe0], eax
add ebx, 4
mov eax, ebx
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret