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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xe0
mov esi, ecx
lea ecx, [esp + 0xb8]
mov edi, edx
call 0x50ed6f
pop ebx
call fcn.00405a30
cmp byte [esp + 0xb8], 0
je 0x50ed94
mov eax, dword [esp + 0xbc]
mov dword [esi], eax
mov byte [esi + 0x4c], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [esp + 0xb9], 0
je 0x50edf8
cmp byte [esp + 0xba], 0x6e
jne 0x50edf8
cmp byte [edi + 0x3c], 0
movzx ebx, byte [edi + 0x3d]
mov byte [edi + 0x3c], 0
je 0x50eddd
mov edx, dword [edi + 0xc]
cmp edx, 0x80000000
je 0x50eddd
mov eax, dword [edi + 0x14]
cmp eax, edx
jne 0x50edd3
lea ecx, [edi + 0xc]
call fcn.00437650
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov byte [ecx + eax], bl
inc eax
mov dword [edi + 0x14], eax
mov ecx, edi
mov edx, 0x585293
push 3
call fcn.00401690
add esp, 4
test eax, eax
jne 0x50ed86
mov byte [esi + 0x4c], 3
jmp 0x50ed8c
mov dword [esp + 0x50], esi
lea eax, [edi + 0xc]
lea ecx, [edi + 0x18]
mov esi, 0x800013
mov dword [esp + 0x90], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x54], ecx
jmp 0x50ee2a
mov ecx, dword [edi + 0x10]
mov byte [ecx + eax], bh
inc eax
mov dword [edi + 0x14], eax
cmp byte [edi + 0x3c], 0
je 0x50ee50
mov bh, byte [edi + 0x3d]
movzx eax, bh
lea ecx, [eax - 9]
cmp ecx, 0x17
jbe 0x50eeb8
jmp 0x50eefb
mov eax, dword [edi + 0x20]
cmp dword [edi + 0x24], eax
jne 0x50ee86
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x18]
call fcn.0053d7f0
movzx eax, byte [esp + 0x18]
cmp eax, 4
je 0x50eeec
cmp eax, 5
je 0x50f90b
mov ebx, dword [esp + 0x18]
cmp bl, 4
je 0x50eea6
jmp 0x50f8ff
mov ecx, dword [edi + 0x18]
mov bh, byte [ecx + eax]
inc eax
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x34]
inc eax
cmp bh, 0xa
jne 0x50eea3
add dword [edi + 0x38], eax
inc dword [edi + 0x30]
mov bh, 0xa
xor eax, eax
mov dword [edi + 0x34], eax
mov byte [edi + 0x3c], 1
mov byte [edi + 0x3d], bh
movzx eax, bh
lea ecx, [eax - 9]
cmp ecx, 0x17
ja 0x50eefb
bt esi, ecx
jae 0x50eefb
mov byte [edi + 0x3c], 0
mov edx, dword [edi + 0xc]
cmp edx, 0x80000000
je 0x50ee2a
mov eax, dword [edi + 0x14]
cmp eax, edx
jne 0x50ee20
mov ecx, dword [esp + 0x3c]
call fcn.00437650
mov eax, dword [edi + 0x14]
jmp 0x50ee20
mov bh, byte [esp + 0x19]
mov eax, dword [edi + 0x34]
inc eax
cmp bh, 0xa
je 0x50ee99
jmp 0x50eea3
cmp bh, 0x5b
je 0x50f4c3
mov esi, dword [esp + 0x50]
cmp eax, 0x7b
jne 0x50f966
dec byte [edi + 0x40]
je 0x50f8e0
mov byte [edi + 0x3c], 0
mov edx, dword [edi + 0xc]
cmp edx, 0x80000000
je 0x50ef47
mov eax, dword [edi + 0x14]
cmp eax, edx
jne 0x50ef3c
mov ecx, dword [esp + 0x3c]
call fcn.00437650
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov byte [ecx + eax], 0x7b
inc eax
mov dword [edi + 0x14], eax
mov esi, 0x800013
xor ebx, ebx
mov byte [esp + 0xb], 3
mov dword [esp + 0x74], 0
mov byte [esp + 0x17], 3
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x4c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ebx
jmp 0x50ef9a
cmp byte [edi + 0x3c], 0
je 0x50efc0
mov bh, byte [edi + 0x3d]
movzx eax, bh
lea ecx, [eax - 9]
cmp ecx, 0x23
jbe 0x50f02c
jmp 0x50f07a
mov eax, dword [edi + 0x20]
cmp dword [edi + 0x24], eax
jne 0x50effa
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x18]
call fcn.0053d7f0
movzx eax, byte [esp + 0x18]
cmp eax, 4
je 0x50f06b
cmp eax, 5
je 0x50fa02
mov ebx, dword [esp + 0x18]
cmp bl, 4
je 0x50f01a
jmp 0x50f9f6
mov ecx, dword [edi + 0x18]
mov bh, byte [ecx + eax]
inc eax
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x34]
inc eax
cmp bh, 0xa
jne 0x50f017
add dword [edi + 0x38], eax
inc dword [edi + 0x30]
mov bh, 0xa
xor eax, eax
mov dword [edi + 0x34], eax
mov byte [edi + 0x3c], 1
mov byte [edi + 0x3d], bh
movzx eax, bh
lea ecx, [eax - 9]
cmp ecx, 0x23
ja 0x50f07a
mov eax, dword [ecx*4 + 0x51026c]
add eax, dword [esp + 0x90]
jmp eax
mov bh, byte [esp + 0x19]
mov eax, dword [edi + 0x34]
inc eax
cmp bh, 0xa
je 0x50f00d
jmp 0x50f017
cmp eax, 0x7d
je 0x50f61c
test byte [esp + 0x2c], 1
jne 0x50fd94
cmp bh, 0x22
jne 0x50fcee
mov byte [edi + 0x3c], 0
mov ebx, dword [esp + 0x90]
mov edx, dword [edi + 0xc]
cmp edx, 0x80000000
je 0x50f0cb
mov eax, dword [edi + 0x14]
cmp eax, edx
jne 0x50f0c0
mov ecx, dword [esp + 0x3c]
call fcn.00437650
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov byte [ecx + eax], 0x22
inc eax
mov dword [edi + 0x14], eax
mov edx, dword [esp + 0x3c]
mov dword [edi + 8], 0
lea ecx, [esp + 0x18]
push edi
call fcn.0053c9d0
add esp, 4
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x18], 2
je 0x50fdb0
lea ecx, [esp + 0x34]
push dword [esp + 0x20]
call fcn.0055a9f0
add esp, 4
cmp byte [esp + 0x34], 0
jne 0x50f983
movzx eax, byte [esp + 0x35]
cmp eax, 5
jbe 0x50f179
mov ecx, edi
call fcn.00406d60
test eax, eax
jne 0x50fdae
mov ecx, edi
call fcn.004018e0
mov bl, 1
test eax, eax
je 0x50ef86
jmp 0x50fdae
mov eax, dword [eax*4 + 0x5102fc]
add eax, ebx
jmp eax
dec byte [edi + 0x40]
mov esi, dword [esp + 0x50]
je 0x50f8e0
mov byte [edi + 0x3c], 0
mov edx, dword [edi + 0xc]
cmp edx, 0x80000000
je 0x50f4fd
mov eax, dword [edi + 0x14]
cmp eax, edx
jne 0x50f4f2
mov ecx, dword [esp + 0x3c]
call fcn.00437650
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov byte [ecx + eax], 0x5b
inc eax
mov dword [edi + 0x14], eax
mov esi, 0x800013
mov dword [esp + 0x60], edi
jmp 0x50f51a
mov ecx, dword [edi + 0x10]
mov byte [ecx + eax], bh
inc eax
mov dword [edi + 0x14], eax
cmp byte [edi + 0x3c], 0
je 0x50f540
mov bh, byte [edi + 0x3d]
movzx eax, bh
lea ecx, [eax - 9]
cmp ecx, 0x17
jbe 0x50f5a8
jmp 0x50f5eb
mov eax, dword [edi + 0x20]
cmp dword [edi + 0x24], eax
jne 0x50f576
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x18]
call fcn.0053d7f0
movzx eax, byte [esp + 0x18]
cmp eax, 4
je 0x50f5dc
cmp eax, 5
je 0x50f9d7
mov ebx, dword [esp + 0x18]
cmp bl, 4
je 0x50f596
jmp 0x50f9cb
mov ecx, dword [edi + 0x18]
mov bh, byte [ecx + eax]
inc eax
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x34]
inc eax
cmp bh, 0xa
jne 0x50f593
add dword [edi + 0x38], eax
inc dword [edi + 0x30]
mov bh, 0xa
xor eax, eax
mov dword [edi + 0x34], eax
mov byte [edi + 0x3c], 1
mov byte [edi + 0x3d], bh
movzx eax, bh
lea ecx, [eax - 9]
cmp ecx, 0x17
ja 0x50f5eb
bt esi, ecx
jae 0x50f5eb
mov byte [edi + 0x3c], 0
mov edx, dword [edi + 0xc]
cmp edx, 0x80000000
je 0x50f51a
mov eax, dword [edi + 0x14]
cmp eax, edx
jne 0x50f510
mov ecx, dword [esp + 0x3c]
call fcn.00437650
mov eax, dword [edi + 0x14]
jmp 0x50f510
mov bh, byte [esp + 0x19]
mov eax, dword [edi + 0x34]
inc eax
cmp bh, 0xa
je 0x50f589
jmp 0x50f593
cmp eax, 0x5d
je 0x50f98c
lea ecx, [esp + 0x18]
mov edx, edi
mov byte [esp + 0x64], 0
call fcn.0055bc10
cmp dword [esp + 0x18], 0
je 0x50f71b
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
jmp 0x50fb3f
cmp dword [esp + 0x7c], 0
mov ecx, dword [esp + 0x30]
mov eax, 0x3f800000
cmove ecx, eax
mov dword [esp + 0x30], ecx
jne 0x50f644
movss xmm0, dword [0x573d40]
movss dword [esp + 0x8c], xmm0
mov ecx, dword [esp + 0x10]
movaps xmm0, xmmword [esp + 0xc0]
mov esi, dword [esp + 0x44]
movzx eax, byte [esp + 0x17]
je 0x50f763
mov bh, 2
cmp al, 3
jne 0x50f774
cmp dword [esp + 0x80], 0
jne 0x50f684
movss xmm1, dword [0x573d40]
movss dword [esp + 0x88], xmm1
movzx edx, byte [esp + 0xb]
mov bl, 2
movaps xmmword [esp + 0xc0], xmm0
cmp dl, 3
je 0x50f6ad
movzx eax, byte [esp + 0x62]
mov bl, dl
mov byte [esp + 0x1a], al
movzx eax, word [esp + 0x60]
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x74]
movzx edx, byte [esp + 0x36]
test eax, eax
mov byte [esp + 0xa2], dl
cmove ecx, eax
movzx eax, word [esp + 0x34]
cmp dword [esp + 0x84], 0
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x78]
mov word [esp + 0xa0], ax
movzx eax, word [esp + 0x18]
mov word [esp + 0x9c], ax
mov eax, 0x3f800000
cmove ecx, eax
cmove esi, eax
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x44], esi
cmove ecx, eax
mov dword [esp + 0x4c], ecx
movzx ecx, byte [esp + 0x1a]
mov byte [esp + 0x9e], cl
jmp 0x50fe40
mov eax, dword [esp + 0x1c]
movsd xmm0, qword [esp + 0x20]
movss xmm1, dword [esp + 0x28]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x60]
mov dword [esp + 0x2c], eax
movaps xmmword [esp + 0xc0], xmm0
movss dword [esp + 0x8c], xmm1
call fcn.00410170
movzx eax, byte [esp + 0x28]
cmp al, 4
jne 0x50f79e
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
jmp 0x50fb3f
movaps xmm0, xmmword [0x573d50]
mov bh, 2
cmp al, 3
je 0x50f669
mov edx, eax
movzx eax, byte [esp + 0x4a]
mov bh, dl
mov byte [esp + 0x36], al
movzx eax, word [esp + 0x48]
mov word [esp + 0x34], ax
cmp dword [esp + 0x80], 0
je 0x50f673
jmp 0x50f684
cmp al, 3
je 0x50fcc5
mov byte [esp + 0x30], al
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x60]
movzx esi, word [esp + 0x29]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x1c]
lea edx, [ebx + 0xc]
lea ecx, [ebx + 0x18]
mov word [esp + 0x48], si
mov dword [esp + 0x3c], edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x5c], eax
movzx eax, byte [esp + 0x2b]
mov byte [esp + 0x4a], al
jmp 0x50f80c
cmp byte [ebx + 0x3c], 0
je 0x50f820
mov ch, byte [ebx + 0x3d]
jmp 0x50f881
mov eax, dword [ebx + 0x20]
cmp dword [ebx + 0x24], eax
jne 0x50f85a
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x18]
call fcn.0053d7f0
movzx eax, byte [esp + 0x18]
cmp eax, 4
je 0x50f8d1
cmp eax, 5
je 0x50fd6e
mov ecx, dword [esp + 0x18]
cmp cl, 4
je 0x50f87a
jmp 0x50fd62
mov ecx, dword [ebx + 0x18]
mov ch, byte [ecx + eax]
inc eax
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x34]
inc eax
cmp ch, 0xa
jne 0x50f877
add dword [ebx + 0x38], eax
inc dword [ebx + 0x30]
mov ch, 0xa
xor eax, eax
mov dword [ebx + 0x34], eax
mov byte [ebx + 0x3c], 1
mov byte [ebx + 0x3d], ch
movzx eax, ch
mov esi, ecx
lea ecx, [eax - 9]
cmp ecx, 0x23
ja 0x50fa13
mov eax, dword [ecx*4 + 0x510314]
add eax, dword [esp + 0x90]
jmp eax
mov ch, byte [esp + 0x19]
mov eax, dword [ebx + 0x34]
inc eax
cmp ch, 0xa
je 0x50f86d
jmp 0x50f877
mov edx, dword [edi + 0x30]
mov dword [esp + 0x18], 0x15
lea ecx, [esp + 0x18]
push dword [edi + 0x34]
call fcn.00486e00
add esp, 4
jmp 0x50ed86
movzx eax, bl
cmp eax, 5
jne 0x50f9b1
mov edx, dword [edi + 0x30]
mov dword [esp + 0x18], 5
lea ecx, [esp + 0x18]
push dword [edi + 0x34]
call fcn.00486e00
jmp 0x50ffe8
mov ecx, edi
lea edx, [esp + 0xa3]
push 0x57493c
call fcn.004063e0
add esp, 4
mov ecx, eax
jmp 0x50ffdd
mov edx, dword [esp + 0x38]
jmp 0x50fdb0
mov dword [esp + 0x44], 0
xor ecx, ecx
mov edx, 0x574774
push 0x5742d4
call fcn.0053c820
add esp, 4
mov dword [esp + 0x2c], eax
jmp 0x50fb47
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
call fcn.00486e60
jmp 0x50ffeb
movzx eax, bl
cmp eax, 5
jne 0x50fc05
mov edx, dword [edi + 0x30]
mov dword [esp + 0x18], 2
lea ecx, [esp + 0x18]
push dword [edi + 0x34]
call fcn.00486e00
add esp, 4
jmp 0x50f613
movzx eax, bl
cmp eax, 5
jne 0x50faca
mov esi, dword [esp + 0x10]
mov dword [esp + 0x18], 3
jmp 0x50faad
cmp eax, 0x5d
je 0x50fd7b
cmp byte [esp + 0x64], 0
mov ecx, esi
je 0x50fd55
mov byte [esp + 0x64], 0
cmp ch, 0x5d
je 0x50fce1
lea ecx, [esp + 0x18]
mov edx, ebx
call fcn.0055bcb0
cmp dword [esp + 0x18], 0
je 0x50fa5e
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc]
mov bh, byte [esp + 0x30]
jmp 0x50fb21
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x60]
mov dword [esp + 0x78], eax
call fcn.0040ce90
mov eax, dword [esp + 0x18]
mov bh, byte [esp + 0x30]
cmp eax, 2
jne 0x50fae4
mov eax, dword [esp + 0x1c]
jmp 0x50fb19
mov edx, dword [edi + 0x30]
lea ecx, [esp + 0x18]
push dword [edi + 0x34]
call fcn.00486e00
add esp, 4
mov edx, eax
mov eax, dword [esp + 0xc]
jmp 0x50fdb8
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
call fcn.00486e60
jmp 0x50fdae
test eax, eax
je 0x510020
movss xmm0, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x60]
movss dword [esp + 0x88], xmm0
call fcn.00410170
mov bl, byte [esp + 0x28]
cmp bl, 4
jne 0x50fc1f
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc]
cmp bh, 2
je 0x50fb3f
test eax, eax
je 0x50fb3f
cmp dword [esp + 0x5c], 0
je 0x50fb3f
push eax
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
mov dword [esp + 0x44], 0
mov bl, 3
inc byte [edi + 0x40]
mov ecx, edi
call fcn.00407ec0
mov ecx, eax
cmp bl, 3
je 0x50fb75
test ecx, ecx
jne 0x50fb82
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x94]
lea ecx, [esp + 0x98]
jmp 0x50fe6f
test ecx, ecx
jne 0x50fbf7
mov ecx, dword [esp + 0x2c]
jmp 0x50ffdd
mov eax, dword [esp + 0xc]
cmp bh, 2
je 0x50fba8
test eax, eax
je 0x50fba8
cmp dword [esp + 0x5c], 0
je 0x50fba8
push eax
push 0
push dword [0x5970d8]
mov esi, ecx
call sub.KERNEL32.dll_HeapFree
mov ecx, esi
mov esi, dword [esp + 0x10]
cmp bl, 2
je 0x50fbd4
cmp dword [esp + 0x40], 0
je 0x50fbd4
cmp dword [esp + 0x58], 0
je 0x50fbd4
push dword [esp + 0x40]
push 0
push dword [0x5970d8]
mov ebx, ecx
call sub.KERNEL32.dll_HeapFree
mov ecx, ebx
test esi, esi
je 0x50ffdd
cmp dword [esp + 0x68], 0
je 0x50ffdd
push esi
push 0
push dword [0x5970d8]
mov esi, ecx
jmp 0x50ffd6
call fcn.0040a630
mov ecx, dword [esp + 0x2c]
jmp 0x50ffdd
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
call fcn.00486e60
jmp 0x50f613
cmp bl, 3
je 0x510081
mov eax, dword [esp + 0x18]
movzx edx, byte [esp + 0x2b]
movzx ecx, word [esp + 0x29]
mov esi, dword [esp + 0x24]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x36], dl
mov word [esp + 0x34], cx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x60]
mov dword [esp + 0x58], esi
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], eax
call fcn.004141f0
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x50fd10
cmp eax, 2
jne 0x51009d
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc]
cmp bl, 2
je 0x50fb21
cmp dword [esp + 0x40], 0
je 0x50fb21
cmp dword [esp + 0x58], 0
je 0x50fb1d
push dword [esp + 0x40]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
jmp 0x50fb1d
mov ecx, 1
mov edx, 0x574774
push 0x5742d4
call fcn.0053c820
add esp, 4
jmp 0x50f75a
mov dword [esp + 0x18], 0x12
jmp 0x510238
movzx eax, bh
cmp eax, 0x7d
jne 0x50fd03
mov dword [esp + 0x18], 0x12
jmp 0x50fd9c
mov dword [esp + 0x18], 0x10
jmp 0x50fd9c
mov eax, dword [esp + 0x1c]
movzx esi, word [esp + 0x48]
mov ch, byte [esp + 0x4a]
movzx edx, word [esp + 0x34]
mov cl, byte [esp + 0x36]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov word [esp + 0x98], si
mov byte [esp + 0x9a], ch
mov word [esp + 0x94], dx
mov byte [esp + 0x96], cl
mov dword [esp + 0x68], eax
jmp 0x50fb49
mov dword [esp + 0x18], 7
jmp 0x510238
movzx eax, cl
cmp eax, 5
jne 0x51024f
mov dword [esp + 0x18], 2
jmp 0x510238
mov ecx, 2
mov edx, 0x574774
push 0x5742d4
call fcn.0053c820
jmp 0x510247
mov dword [esp + 0x18], 8
mov edx, dword [edi + 0x30]
lea ecx, [esp + 0x18]
push dword [edi + 0x34]
call fcn.00486e00
add esp, 4
mov edx, eax
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
movzx ecx, byte [esp + 0xb]
cmp dword [esp + 0x74], 0
je 0x50fde9
test esi, esi
je 0x50fde9
cmp dword [esp + 0x68], 0
je 0x50fde9
push esi
push 0
push dword [0x5970d8]
mov esi, edx
mov ebx, ecx
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esp + 0xc]
mov ecx, ebx
mov edx, esi
and cl, 0xfe
mov dword [esp + 0x30], edx
cmp cl, 2
je 0x50fe18
cmp dword [esp + 0x40], 0
je 0x50fe18
cmp dword [esp + 0x58], 0
je 0x50fe18
push dword [esp + 0x40]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0x17]
and cl, 0xfe
cmp cl, 2
je 0x50fe3e
test eax, eax
je 0x50fe3e
cmp dword [esp + 0x5c], 0
je 0x50fe3e
push eax
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
mov bl, 3
inc byte [edi + 0x40]
mov ecx, edi
call fcn.00407ad0
mov esi, eax
cmp bl, 3
je 0x50ff61
test esi, esi
jne 0x50ff76
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x9c]
lea ecx, [esp + 0xa0]
movzx edx, word [eax]
mov esi, dword [esp + 0x50]
movaps xmm0, xmmword [esp + 0xc0]
movzx eax, byte [eax + 2]
mov dword [esi], edi
mov word [esp + 0x6c], dx
movlps qword [esi + 4], xmm0
movss xmm0, dword [esp + 0x8c]
mov edx, dword [esp + 0x10]
mov edi, esi
mov byte [esp + 0x6e], al
movzx eax, byte [esp + 0x6e]
movss dword [esi + 0xc], xmm0
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x68]
movss xmm0, dword [esp + 0x88]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x78]
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0x44]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0xac]
movss dword [esi + 0x24], xmm0
mov dword [esi + 0x2c], edx
mov edx, dword [esp + 0xb0]
mov dword [esi + 0x28], edx
mov edx, dword [esp + 0xc]
mov dword [esi + 0x30], edx
mov edx, dword [esp + 0x5c]
mov dword [esi + 0x34], edx
movzx edx, word [ecx]
movzx ecx, byte [ecx + 2]
mov byte [esi + 0x38], bh
mov word [esp + 0x70], dx
mov byte [esp + 0x72], cl
mov word [esp + 0xb4], dx
mov byte [esp + 0xb6], cl
movzx esi, word [esp + 0x70]
mov ch, byte [esp + 0x72]
mov word [edi + 0x39], si
mov esi, dword [esp + 0xa4]
mov byte [edi + 0x3b], ch
mov dword [edi + 0x40], esi
mov esi, dword [esp + 0xa8]
mov dword [edi + 0x3c], esi
mov esi, dword [esp + 0x40]
mov dword [edi + 0x44], esi
mov esi, dword [esp + 0x58]
mov dword [edi + 0x48], esi
mov byte [edi + 0x4c], bl
movzx ebx, word [esp + 0x6c]
mov byte [edi + 0x4f], al
mov word [edi + 0x4d], bx
jmp 0x50ed8c
mov ecx, dword [esp + 0x30]
test esi, esi
je 0x50ffdd
mov ecx, esi
call fcn.0040a630
mov ecx, dword [esp + 0x30]
jmp 0x50ffdd
mov eax, dword [esp + 0xc]
cmp bh, 2
je 0x50ff98
test eax, eax
je 0x50ff98
cmp dword [esp + 0x5c], 0
je 0x50ff98
push eax
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
cmp bl, 2
je 0x50ffbc
cmp dword [esp + 0x40], 0
je 0x50ffbc
cmp dword [esp + 0x58], 0
je 0x50ffbc
push dword [esp + 0x40]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
cmp dword [esp + 0x10], 0
je 0x50ffdb
cmp dword [esp + 0x68], 0
je 0x50ffdb
push dword [esp + 0x10]
push 0
push dword [0x5970d8]
call sub.KERNEL32.dll_HeapFree
mov ecx, esi
mov edx, dword [edi + 0x30]
push dword [edi + 0x34]
call fcn.0053b8e0
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword [ecx], eax
mov byte [ecx + 0x4c], 4
jmp 0x50ed8c
mov ecx, 3
jmp 0x510086
mov ecx, 4
mov edx, 0x574774
push 0x5742d4
call fcn.0053c820
add esp, 4
jmp 0x50fb19
mov ecx, 5
mov edx, 0x574774
push 0x5742d4
call fcn.0053c820
add esp, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc]
cmp bl, 2
je 0x50fb21
jmp 0x50fc99
mov edx, dword [ebx + 0x30]
lea ecx, [esp + 0x18]
push dword [ebx + 0x34]
call fcn.00486e00
add esp, 4
jmp 0x50fa4d
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], eax
call fcn.00486e60
jmp 0x50fa4d