Function at 0x49a4e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5d1b
mov eax, dword fs:[0]
push eax
sub esp, 0x314
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28c], ecx
cmp dword [ebp + 0xc], 0
jne 0x49a52b
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x28c]
call fcn.00494880
jmp 0x49af93
mov ecx, dword [ebp - 0x28c]
add ecx, 0x50
push ecx
lea ecx, [ebp - 0x31c]
call fcn.0048f930
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0x10]
add edx, 0x18
push edx
lea eax, [ebp - 0x288]
push eax
mov ecx, dword [ebp - 0x28c]
add ecx, 0x20
call fcn.00495470
lea ecx, [ebp - 0x2fc]
push ecx
mov ecx, dword [ebp - 0x28c]
add ecx, 0x20
call fcn.0043e480
push eax
lea ecx, [ebp - 0x288]
call fcn.00439140
movzx edx, al
test edx, edx
je 0x49af53
lea ecx, [ebp - 0x288]
call fcn.00439290
mov eax, dword [eax + 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2a8], ecx
cmp dword [ebp - 0x2a8], 1
je 0x49a5d3
cmp dword [ebp - 0x2a8], 2
je 0x49a9f6
cmp dword [ebp - 0x2a8], 3
je 0x49ac12
jmp 0x49af53
cmp dword [ebp + 0xc], 2
jae 0x49a5de
jmp 0x49af53
push 0
mov ecx, dword [ebp + 0x10]
add ecx, 0x44
call fcn.00491240
mov dword [ebp - 0x29c], eax
mov edx, dword [ebp - 0x29c]
movsx eax, byte [edx]
cmp eax, 5
jne 0x49a61c
mov ecx, dword [ebp - 0x29c]
movsx edx, byte [ecx + 1]
test edx, edx
je 0x49a621
mov eax, dword [ebp - 0x29c]
movsx ecx, byte [eax + 1]
cmp ecx, 2
je 0x49a621
jmp 0x49af53
mov edx, dword [ebp - 0x29c]
movsx eax, byte [edx + 1]
cmp eax, 2
jne 0x49a7ff
mov ecx, dword [ebp + 0x10]
add ecx, 0x18
push ecx
lea edx, [ebp - 0x2b8]
push edx
mov ecx, 0x4ea670
call fcn.00495470
lea eax, [ebp - 0x300]
push eax
mov ecx, 0x4ea670
call fcn.0043e480
push eax
lea ecx, [ebp - 0x2b8]
call fcn.00439040
movzx ecx, al
test ecx, ecx
je 0x49a675
jmp 0x49af53
lea ecx, [ebp - 0x2b8]
call fcn.00439290
mov edx, dword [eax + 8]
push edx
mov eax, dword [ebp - 0x28c]
mov ecx, dword [eax + 0x4c]
call fcn.00495e90
mov dword [ebp - 0x298], eax
cmp dword [ebp - 0x298], 0
jne 0x49a6a6
jmp 0x49af53
push 0x200
push 0
lea ecx, [ebp - 0x210]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea edx, [ebp - 0x210]
mov dword [ebp - 0x294], edx
mov eax, dword [ebp - 0x294]
mov dword [eax], 1
mov ecx, dword [ebp - 0x298]
add ecx, 0x314
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [ebp - 0x2a0], eax
push 1
lea edx, [ebp - 0x2a0]
push edx
mov eax, dword [ebp - 0x294]
add eax, 1
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x2a0]
push ecx
mov edx, dword [ebp - 0x298]
add edx, 0x314
push edx
mov eax, dword [ebp - 0x294]
add eax, 2
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x298]
add ecx, 0x414
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [ebp - 0x2ac], eax
push 1
lea edx, [ebp - 0x2ac]
push edx
mov eax, dword [ebp - 0x2a0]
mov ecx, dword [ebp - 0x294]
lea edx, [ecx + eax + 2]
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x2ac]
push eax
mov ecx, dword [ebp - 0x298]
add ecx, 0x414
push ecx
mov edx, dword [ebp - 0x2a0]
mov eax, dword [ebp - 0x294]
lea ecx, [eax + edx + 3]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [edx + 0x18]
push ecx
mov edx, dword [ebp - 0x2a0]
mov eax, dword [ebp - 0x2ac]
lea ecx, [eax + edx + 3]
push ecx
mov edx, dword [ebp - 0x294]
push edx
lea ecx, [ebp - 0x288]
call fcn.00439290
mov eax, dword [eax + 8]
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x28c]
call fcn.0049e080
movzx edx, al
test edx, edx
je 0x49a7f5
lea ecx, [ebp - 0x288]
call fcn.00439290
mov eax, dword [eax + 8]
mov dword [eax + 8], 2
jmp 0x49af53
mov ecx, dword [ebp - 0x29c]
movsx edx, byte [ecx + 1]
test edx, edx
jne 0x49a9f1
mov eax, dword [ebp + 0x10]
add eax, 0x18
push eax
lea ecx, [ebp - 0x2bc]
push ecx
mov ecx, 0x4ea670
call fcn.00495470
lea edx, [ebp - 0x304]
push edx
mov ecx, 0x4ea670
call fcn.0043e480
push eax
lea ecx, [ebp - 0x2bc]
call fcn.00439040
movzx eax, al
test eax, eax
je 0x49a852
jmp 0x49af53
lea ecx, [ebp - 0x2bc]
call fcn.00439290
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x28c]
mov ecx, dword [edx + 0x4c]
call fcn.00495e90
mov dword [ebp - 0x2c0], eax
cmp dword [ebp - 0x2c0], 0
jne 0x49a883
jmp 0x49af53
mov eax, dword [ebp - 0x2c0]
add eax, 0x654
mov dword [ebp - 0x2b0], eax
mov ecx, dword [ebp - 0x2b0]
movzx edx, word [ecx]
cmp edx, 2
jne 0x49a8ae
mov dword [ebp - 0x2c4], 0x10
jmp 0x49a8b8
mov dword [ebp - 0x2c4], 0x1c
mov eax, dword [ebp - 0x2c4]
mov dword [ebp - 0x308], eax
mov ecx, dword [ebp - 0x2b0]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x2b0]
movzx eax, word [edx]
mov dword [ebp - 0x2e4], eax
cmp dword [ebp - 0x2e4], 2
jne 0x49a96d
mov byte [ebp - 0x228], 5
mov byte [ebp - 0x227], 3
mov byte [ebp - 0x226], 0
mov byte [ebp - 0x225], 1
mov dword [ebp - 0x224], 0
xor ecx, ecx
mov word [ebp - 0x220], cx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [edx + 0x18]
push ecx
push 0xa
lea edx, [ebp - 0x228]
push edx
lea ecx, [ebp - 0x288]
call fcn.00439290
mov eax, dword [eax + 8]
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x28c]
call fcn.0049e080
movzx edx, al
test edx, edx
je 0x49a968
lea ecx, [ebp - 0x288]
call fcn.00439290
mov eax, dword [eax + 8]
mov dword [eax + 8], 3
jmp 0x49a9f1
mov byte [ebp - 0x258], 5
mov byte [ebp - 0x257], 3
mov byte [ebp - 0x256], 0
mov byte [ebp - 0x255], 4
push 0x10
push 0
lea ecx, [ebp - 0x254]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x244], dx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [eax + 0x18]
push edx
push 0x16
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x288]
call fcn.00439290
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
push edx
mov ecx, dword [ebp - 0x28c]
call fcn.0049e080
movzx eax, al
test eax, eax
je 0x49a9f1
lea ecx, [ebp - 0x288]
call fcn.00439290
mov ecx, dword [eax + 8]
mov dword [ecx + 8], 3
jmp 0x49af53
cmp dword [ebp + 0xc], 2
jae 0x49aa01
jmp 0x49af53
push 0
mov ecx, dword [ebp + 0x10]
add ecx, 0x44
call fcn.00491240
mov dword [ebp - 0x2e0], eax
mov edx, dword [ebp - 0x2e0]
movsx eax, byte [edx]
cmp eax, 1
jne 0x49aa30
mov ecx, dword [ebp - 0x2e0]
movzx edx, byte [ecx + 1]
test edx, edx
je 0x49aa35
jmp 0x49af53
mov eax, dword [ebp + 0x10]
add eax, 0x18
push eax
lea ecx, [ebp - 0x2dc]
push ecx
mov ecx, 0x4ea670
call fcn.00495470
lea edx, [ebp - 0x30c]
push edx
mov ecx, 0x4ea670
call fcn.0043e480
push eax
lea ecx, [ebp - 0x2dc]
call fcn.00439040
movzx eax, al
test eax, eax
je 0x49aa76
jmp 0x49af53
lea ecx, [ebp - 0x2dc]
call fcn.00439290
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x28c]
mov ecx, dword [edx + 0x4c]
call fcn.00495e90
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2d8], 0
jne 0x49aaa7
jmp 0x49af53
mov eax, dword [ebp - 0x2d8]
add eax, 0x654
mov dword [ebp - 0x2cc], eax
mov ecx, dword [ebp - 0x2cc]
movzx edx, word [ecx]
cmp edx, 2
jne 0x49aad2
mov dword [ebp - 0x2d4], 0x10
jmp 0x49aadc
mov dword [ebp - 0x2d4], 0x1c
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x320], eax
mov ecx, dword [ebp - 0x2cc]
movzx edx, word [ecx]
mov dword [ebp - 0x2e8], edx
cmp dword [ebp - 0x2e8], 2
jne 0x49ab84
mov byte [ebp - 0x21c], 5
mov byte [ebp - 0x21b], 3
mov byte [ebp - 0x21a], 0
mov byte [ebp - 0x219], 1
mov dword [ebp - 0x218], 0
xor eax, eax
mov word [ebp - 0x214], ax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ecx + 0x18]
push eax
push 0xa
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x288]
call fcn.00439290
mov edx, dword [eax + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x28c]
call fcn.0049e080
movzx ecx, al
test ecx, ecx
je 0x49ab7f
lea ecx, [ebp - 0x288]
call fcn.00439290
mov edx, dword [eax + 8]
mov dword [edx + 8], 3
jmp 0x49ac08
mov byte [ebp - 0x240], 5
mov byte [ebp - 0x23f], 1
mov byte [ebp - 0x23e], 0
mov byte [ebp - 0x23d], 4
push 0x10
push 0
lea eax, [ebp - 0x23c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x22c], cx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [edx + 0x18]
push ecx
push 0x16
lea edx, [ebp - 0x240]
push edx
lea ecx, [ebp - 0x288]
call fcn.00439290
mov eax, dword [eax + 8]
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x28c]
call fcn.0049e080
movzx edx, al
test edx, edx
je 0x49ac08
lea ecx, [ebp - 0x288]
call fcn.00439290
mov eax, dword [eax + 8]
mov dword [eax + 8], 3
jmp 0x49af53
cmp dword [ebp + 0xc], 5
jae 0x49ac1d
jmp 0x49af53
push 0
mov ecx, dword [ebp + 0x10]
add ecx, 0x44
call fcn.00491240
mov dword [ebp - 0x2a4], eax
mov ecx, dword [ebp - 0x2a4]
movsx edx, byte [ecx]
cmp edx, 5
jne 0x49ac4c
mov eax, dword [ebp - 0x2a4]
movsx ecx, byte [eax + 1]
test ecx, ecx
je 0x49ac51
jmp 0x49af53
mov edx, dword [ebp + 0x10]
add edx, 0x18
push edx
lea eax, [ebp - 0x2c8]
push eax
mov ecx, 0x4ea670
call fcn.00495470
lea ecx, [ebp - 0x310]
push ecx
mov ecx, 0x4ea670
call fcn.0043e480
push eax
lea ecx, [ebp - 0x2c8]
call fcn.00439040
movzx edx, al
test edx, edx
je 0x49ac92
jmp 0x49af53
lea ecx, [ebp - 0x2c8]
call fcn.00439290
mov eax, dword [eax + 8]
push eax
mov ecx, dword [ebp - 0x28c]
mov ecx, dword [ecx + 0x4c]
call fcn.00495e90
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x2b4], 0
jne 0x49acc3
jmp 0x49af53
mov edx, dword [ebp - 0x2a4]
movsx eax, byte [edx + 3]
cmp eax, 1
jne 0x49ad68
push 0
mov ecx, dword [ebp + 0x10]
add ecx, 0x44
call fcn.00491240
mov dword [ebp - 0x2ec], eax
push 0x10
push 0
lea ecx, [ebp - 0x268]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, 2
mov word [ebp - 0x268], dx
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [eax + 0x658]
mov dword [ebp - 0x264], ecx
mov edx, dword [ebp - 0x2ec]
mov ax, word [edx + 8]
mov word [ebp - 0x266], ax
push 0x10
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x288]
call fcn.00439290
mov edx, dword [eax + 8]
add edx, 0xc
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x288]
call fcn.00439290
mov eax, dword [eax + 8]
mov dword [eax + 0x28], 0x10
jmp 0x49ae1b
mov ecx, dword [ebp - 0x2a4]
movsx edx, byte [ecx + 3]
cmp edx, 4
jne 0x49ae16
push 0
mov ecx, dword [ebp + 0x10]
add ecx, 0x44
call fcn.00491240
mov dword [ebp - 0x2f0], eax
push 0x1c
push 0
lea eax, [ebp - 0x284]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, 0x17
mov word [ebp - 0x284], cx
push 0x10
mov edx, dword [ebp - 0x2b4]
add edx, 0x65c
push edx
lea eax, [ebp - 0x27c]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x2f0]
mov dx, word [ecx + 0x14]
mov word [ebp - 0x282], dx
push 0x1c
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x288]
call fcn.00439290
mov ecx, dword [eax + 8]
add ecx, 0xc
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x288]
call fcn.00439290
mov edx, dword [eax + 8]
mov dword [edx + 0x28], 0x1c
jmp 0x49ae1b
jmp 0x49af53
lea ecx, [ebp - 0x288]
call fcn.00439290
mov eax, dword [eax + 8]
mov dword [eax + 8], 4
lea ecx, [ebp - 0x290]
push ecx
lea ecx, [ebp - 0x288]
call fcn.00439290
mov ecx, dword [eax + 8]
add ecx, 0x2c
call fcn.004940c0
jmp 0x49ae5a
lea ecx, [ebp - 0x290]
call fcn.00491320
lea edx, [ebp - 0x314]
push edx
lea ecx, [ebp - 0x288]
call fcn.00439290
mov ecx, dword [eax + 8]
add ecx, 0x2c
call fcn.00494b50
push eax
lea ecx, [ebp - 0x290]
call fcn.00439140
movzx eax, al
test eax, eax
je 0x49af3d
lea ecx, [ebp - 0x290]
call fcn.004912a0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push edx
lea ecx, [ebp - 0x290]
call fcn.004912a0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x290]
call fcn.004912a0
mov ecx, dword [eax]
add ecx, 0x20
call fcn.0049d070
push eax
push 0
lea ecx, [ebp - 0x290]
call fcn.004912a0
mov ecx, dword [eax]
add ecx, 0x20
call fcn.00491240
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ecx + 0x18]
push eax
mov ecx, dword [ebp - 0x28c]
call fcn.0049f750
lea ecx, [ebp - 0x290]
call fcn.004912a0
mov ecx, dword [eax]
mov dword [ebp - 0x2f4], ecx
mov edx, dword [ebp - 0x2f4]
mov dword [ebp - 0x2d0], edx
cmp dword [ebp - 0x2d0], 0
je 0x49af2e
push 1
mov ecx, dword [ebp - 0x2d0]
call fcn.00491650
mov dword [ebp - 0x2f8], eax
jmp 0x49af38
mov dword [ebp - 0x2f8], 0
jmp 0x49ae4f
lea ecx, [ebp - 0x288]
call fcn.00439290
mov ecx, dword [eax + 8]
add ecx, 0x2c
call fcn.00494310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x31c]
call fcn.00490ae0
push 0x14
push 0
mov eax, dword [ebp + 0x10]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [edx + 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x28c]
call fcn.0049d8c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret 0x10