Function at 0x49d7a0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x526ad4]
sub esp, 0x2e8
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
push eax
call edi
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x49d7fc
call fcn.0049a520
test eax, eax
jne 0x49d7db
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x2e8
ret 4
mov ecx, dword [0x526ad4]
push ecx
call edi
mov esi, eax
cmp esi, ebx
jne 0x49d7fc
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x2e8
ret 4
cmp dword [esi + 0x1a0], ebx
je 0x49d838
mov edx, dword [esp + 0x2fc]
mov eax, dword [edx + 0x28]
push eax
push 2
push 0x74
call fcn.004a1f10
add esp, 8
push eax
push 0x2d
call fcn.0049a580
add esp, 0xc
mov eax, 0x2d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e8
ret 4
mov edi, dword [esp + 0x2fc]
or eax, 0xffffffff
mov dword [esi + 0x1a0], 1
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x97e], eax
mov dword [esi + 0xace], ebx
mov dword [esi + 0xad2], ebx
mov ecx, dword [edi + 0x54]
push edi
mov dword [esi + 0xaca], ecx
call fcn.004a0aa0
mov eax, dword [edi]
add esp, 4
sub eax, 0x64
mov ecx, 0x12c
je 0x49d8d0
sub eax, 0xa
je 0x49d8c4
sub eax, 0x20
mov dword [esi + 0x1a4], ecx
jmp 0x49d8da
mov dword [esi + 0x1a4], 0xc8
jmp 0x49d8da
mov dword [esi + 0x1a4], 0x64
lea edx, [esp + 0x28]
mov ebp, 0x8e
push edi
push edx
mov dword [esp + 0x30], ebp
call fcn.0049d420
add esp, 8
test eax, eax
je 0x49d918
push edi
push 0x2f
call fcn.004a07d0
add esp, 8
mov dword [esi + 0x1a0], ebx
mov eax, 0x2f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e8
ret 4
cmp dword [esp + 0x28], ebp
je 0x49d92c
mov eax, dword [esp + 0x50]
push eax
push 2
push 0x75
jmp 0x49db8c
mov ecx, dword [esp + 0x8c]
mov dword [esi + 0xace], ecx
mov edx, dword [esp + 0x90]
mov dword [esi + 0xad2], edx
mov eax, dword [esp + 0x9e]
mov dword [esi + 0xac2], eax
mov ecx, dword [esp + 0xa2]
mov dword [esi + 0xac6], ecx
mov eax, dword [esp + 0x96]
cmp eax, ebx
je 0x49d984
mov edx, dword [eax + 4]
mov dword [esi + 0xad6], edx
mov eax, dword [esp + 0x96]
mov ecx, dword [eax + 8]
mov dword [esi + 0xada], ecx
cmp dword [esp + 0x2c], 0xa
je 0x49d9ac
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x49d99e
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
jne 0x49d9ac
mov edx, dword [esp + 0x50]
push edx
push 2
push 0x71
jmp 0x49db8c
cmp dword [esp + 0x44], ebx
je 0x49d9c6
cmp dword [esp + 0x48], ebx
je 0x49d9c6
mov eax, dword [esp + 0x50]
push eax
push 2
push 0x76
jmp 0x49db8c
lea ebp, [esi + 0xc88]
mov ecx, 0x10
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [esp + 0x84], ebx
je 0x49da10
mov eax, dword [esp + 0x88]
cmp eax, ebx
je 0x49db83
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp eax, 0x41
jg 0x49db83
mov ecx, dword [esp + 0x88]
push ecx
push ebp
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov eax, dword [esp + 0x94]
xor ecx, ecx
and eax, 1
mov dword [esi + 4], eax
mov edx, dword [esp + 0x4c]
cmp edx, ebx
setne cl
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x94]
shr edx, 1
and edx, 1
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x94]
shr eax, 4
and eax, 1
mov dword [esi + 0x34], eax
mov ecx, dword [esp + 0x94]
shr ecx, 5
and ecx, 1
mov dword [esi + 0x38], ecx
mov edx, dword [esp + 0x94]
shr edx, 7
and edx, 1
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x94]
shr eax, 8
and eax, 1
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x94]
shr ecx, 0xe
and ecx, 1
mov dword [esi + 0x18], ecx
mov eax, dword [esp + 0xae]
cmp eax, ebx
jl 0x49db60
cmp dword [esp + 0xaa], ebx
je 0x49daf3
cmp dword [esp + 0xb2], ebx
jl 0x49daf3
mov dword [esi + 0x5c], eax
mov edx, dword [esp + 0xb2]
mov dword [esi + 0x60], edx
mov eax, dword [esp + 0xaa]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x49dae6
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
jle 0x49dae6
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004a1a60
add esp, 4
test eax, eax
jne 0x49daec
cmp dword [esp + 0x3c], ebx
jl 0x49daf3
mov dword [esi + 0x3c], 1
cmp dword [esp + 0xae], ebx
jl 0x49db60
cmp dword [esi + 0x3c], ebx
jne 0x49db60
cmp dword [esp + 0xb2], ebx
jl 0x49db60
cmp dword [esp + 0x2c], 0xb
jne 0x49db60
mov dword [esi + 0x40], 1
mov edx, dword [esp + 0xae]
mov dword [esi + 0x5c], edx
mov eax, dword [esp + 0xb2]
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], ebx
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x49db53
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
test eax, eax
jle 0x49db53
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004a1a60
add esp, 4
test eax, eax
jne 0x49db59
cmp dword [esp + 0x3c], ebx
jl 0x49db60
mov dword [esi + 0x3c], 1
mov eax, dword [esp + 0xa6]
cmp eax, ebx
je 0x49dbb7
push 0x12c
lea edx, [esi + 0x70]
push eax
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
mov byte [esi + 0x19b], bl
jmp 0x49dbc6
mov edx, dword [esp + 0x50]
push edx
push 2
push 0x77
call fcn.004a1f10
add esp, 8
push eax
push 0x2f
call fcn.0049a580
add esp, 0xc
mov dword [esi + 0x1a0], ebx
mov eax, 0x2f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e8
ret 4
lea eax, [esi + 0x70]
push 0x51dbd0
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea ebp, [esi + 0x520]
push ebp
mov dword [esp + 0xbc], ebp
call fcn.0049e8a0
mov eax, dword [esi + 0xc36]
add esp, 4
cmp eax, ebx
je 0x49dc21
mov eax, dword [esp + 0x2c]
cmp eax, 2
je 0x49dbf4
cmp eax, 4
jne 0x49dc21
mov ecx, dword [esp + 0x30]
lea edi, [esi + 0x318]
push ecx
push edi
call fcn.004a1b40
add esp, 8
lea eax, [esi + 0x8cfc]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
or ecx, 0xffffffff
mov dword [esi + 0x97e], ecx
jmp 0x49dc89
mov edx, dword [esp + 0x30]
lea edi, [esi + 0x318]
push edx
push edi
call fcn.004a1b40
add esp, 8
lea eax, [esi + 0x8cfc]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
call fcn.0049acb0
test eax, eax
jne 0x49dc86
mov dword [esi + 0x1a0], ebx
mov eax, dword [esp + 0x50]
push eax
push 2
push 0x67
call fcn.004a1f10
add esp, 8
push eax
push 9
call fcn.0049a580
push ebp
call fcn.0049e900
add esp, 0x10
mov eax, 9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e8
ret 4
or ecx, 0xffffffff
mov edx, dword [esp + 0x2c]
lea eax, [edx - 1]
cmp eax, 0xa
ja case.default.0x49dc99
jmp dword [eax*4 + 0x49e848]
push esi
mov dword [esi + 0xc20], ebx
call fcn.0049b850
add esp, 4
test eax, eax
jne 0x49dcba
mov edi, 5
jmp 0x49dcc9
lea eax, [esp + 0x28]
push eax
call fcn.0049af10
add esp, 4
mov edi, eax
mov edx, dword [esp + 0x2fc]
lea ecx, [esp + 0x28]
push ecx
push edx
call fcn.0049d420
mov eax, dword [esp + 0x304]
push eax
push edi
call fcn.004a07d0
push ebp
mov dword [esi + 0x1a0], ebx
call fcn.0049e900
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e8
ret 4
lea ecx, [esp + 0x28]
push ecx
call fcn.0049bc90
mov edi, eax
mov eax, dword [esp + 0x300]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.0049d420
mov ecx, dword [esp + 0x308]
push ecx
push edi
call fcn.004a07d0
push ebp
mov dword [esi + 0x1a0], ebx
call fcn.0049e900
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e8
ret 4
push esi
mov dword [esi + 0xc20], ebx
call fcn.0049b850
add esp, 4
test eax, eax
jne 0x49dd6b
mov edi, 5
jmp 0x49dde3
lea edx, [esp + 0x28]
push edx
call fcn.0049b0b0
jmp 0x49ddde
lea eax, [esp + 0x28]
push eax
call fcn.0049bf20
mov edx, dword [esp + 0x300]
lea ecx, [esp + 0x2c]
push ecx
push edx
mov edi, eax
call fcn.0049d420
mov eax, dword [esp + 0x308]
push eax
jmp 0x49de88
cmp dword [esi + 0xc20], ebx
je 0x49ddd4
cmp word [esi + 0xc24], cx
jne 0x49ddd4
push esi
mov dword [esi + 0xc20], ebx
call fcn.0049b850
add esp, 4
test eax, eax
jne 0x49ddcd
mov edi, 5
jmp 0x49dde3
lea ecx, [esp + 0x28]
push ecx
jmp 0x49ddd9
lea edx, [esp + 0x28]
push edx
call fcn.0049c7f0
add esp, 4
mov edi, eax
mov ecx, dword [esp + 0x2fc]
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.0049d420
mov edx, dword [esp + 0x304]
push edx
jmp 0x49dce3
cmp dword [esi + 0xc20], ebx
je 0x49de34
cmp word [esi + 0xc24], cx
jne 0x49de34
push esi
mov dword [esi + 0xc20], ebx
call fcn.0049b850
add esp, 4
test eax, eax
jne 0x49de2d
mov edi, 5
jmp 0x49de43
lea eax, [esp + 0x28]
push eax
jmp 0x49de39
lea ecx, [esp + 0x28]
push ecx
call fcn.0049c910
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x2fc]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.0049d420
mov ecx, dword [esp + 0x304]
push ecx
jmp 0x49dce3
lea edx, [esp + 0x28]
push edx
call fcn.0049cb80
mov ecx, dword [esp + 0x300]
mov edi, eax
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.0049d420
mov edx, dword [esp + 0x308]
push edx
push edi
call fcn.004a07d0
push ebp
mov dword [esi + 0x1a0], ebx
call fcn.0049e900
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e8
ret 4
cmp dword [esp + 0x54], ebx
jne 0x49df49
mov eax, dword [esp + 0x40]
cmp eax, ebx
jne 0x49decc
mov eax, dword [esp + 0x50]
push eax
push 2
push 0x78
jmp 0x49e814
lea edi, [esi + 0x41c]
push eax
push edi
call fcn.004a1b40
add esp, 8
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp eax, 2
jge 0x49def6
mov ecx, dword [esp + 0x50]
push ecx
push 2
push 0x6e
jmp 0x49e814
mov al, byte [esi + 0x41d]
cmp al, 0x3a
je 0x49df49
cmp byte [edi], 0x5c
jne 0x49df09
cmp al, 0x5c
je 0x49df49
mov edx, dword [esp + 0x50]
push edx
push 2
push 0x6f
jmp 0x49e814
cmp dword [esi + 0x3c], ebx
jne 0x49df49
mov eax, dword [esp + 0x50]
push eax
push 2
push 0x83
jmp 0x49e814
cmp dword [esi + 0x3c], ebx
jne 0x49df1c
mov eax, dword [esp + 0x96]
cmp eax, ebx
je 0x49df1c
cmp dword [eax + 4], ebx
je 0x49df1c
mov dword [esi + 0x44], 1
cmp dword [esp + 0x80], ebx
je 0x49df5e
mov dword [esi + 0xaf2], 0x4000
jmp 0x49df68
mov dword [esi + 0xaf2], 0x8000
cmp dword [esp + 0x54], ebx
jne 0x49dfa2
cmp dword [esi + 0x3c], ebx
jne 0x49dfa2
cmp dword [esi + 0x44], ebx
jne 0x49dfa2
mov ecx, dword [esp + 0x40]
lea edi, [esi + 0xb1c]
push ecx
push edi
call fcn.004a1b40
push edi
call fcn.004a2110
add esp, 0xc
test eax, eax
jne 0x49dfa2
push 0x510870
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov edx, dword [esp + 0x6c]
mov dword [esi + 0xaba], edx
mov eax, dword [esp + 0x70]
mov dword [esi + 0xabe], eax
mov ecx, dword [esp + 0x64]
mov eax, dword [esi + 0x44]
mov dword [esi + 0xb14], ecx
mov edx, dword [esp + 0x68]
cmp eax, ebx
mov dword [esi + 0xb18], edx
je 0x49e350
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x54], ebx
mov eax, 3
lea ecx, [esi + 0xc3a]
mov dword [esi + 0x50], ebx
mov dword [esi + 0x58], ebx
mov dword [esp + 0x18], eax
mov ebp, dword [esi + 0x50]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x4c]
xor edi, edi
mov dword [esp + 0x20], ecx
cmp eax, 3
jne 0x49e072
mov edx, 0x2e
lea eax, [esp + 0x18]
sub edx, edi
push eax
mov dword [esp + 0x18], edx
mov ecx, dword [esi + 0xada]
mov eax, dword [esi + 0x54]
mov edx, dword [esi + 0x58]
push ecx
mov ecx, 0x20
call fcn.004b4f70
mov edx, dword [esi + 0x54]
mov ecx, dword [esp + 0x28]
push eax
mov eax, ebp
push edx
push ebp
sar eax, 0x1f
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
push ecx
push edx
push eax
push ebx
call dword [esi + 0xad6]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
add edi, eax
add ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
adc ebp, ebx
add ecx, eax
mov eax, dword [esp + 0x18]
cmp edi, 0x2e
mov dword [esp + 0x10], ecx
jb 0x49e000
cmp eax, 3
mov dword [esp + 0x14], edi
ja case.0x49e07f.1
jmp dword [eax*4 + 0x49e874]
mov dword [esp + 0x10], 2
jmp 0x49e2eb
mov dword [esp + 0x10], 0x30
jmp 0x49e2eb
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0xc3a]
add edx, edi
mov dword [esp + 0x10], ebx
mov dword [esi + 0x4c], edx
mov ecx, dword [esi + 0x50]
adc ecx, ebx
cmp eax, 0x2014b50
mov dword [esi + 0x50], ecx
jne 0x49e2eb
xor ebp, ebp
xor ecx, ecx
mov bp, word [esi + 0xc5a]
mov cx, word [esi + 0xc56]
xor edx, edx
add ebp, ecx
mov dx, word [esi + 0xc58]
add ebp, edx
push ebp
call fcn.004af1a1
add esp, 4
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x49e2eb
mov dword [esp + 0x10], eax
mov eax, 3
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x50]
xor edi, edi
cmp ebp, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
jbe 0x49e194
cmp eax, 3
jne 0x49e194
mov eax, ebp
lea ecx, [esp + 0x18]
sub eax, edi
push ecx
mov dword [esp + 0x18], eax
mov edx, dword [esi + 0xada]
mov eax, dword [esi + 0x54]
push edx
mov edx, dword [esi + 0x58]
mov ecx, 0x20
call fcn.004b4f70
push eax
mov eax, dword [esi + 0x54]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x34]
mov ecx, eax
push eax
sar ecx, 0x1f
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x28]
push edx
push eax
push ecx
push ebx
call dword [esi + 0xad6]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add edi, eax
add ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
adc edx, ebx
add ecx, eax
mov eax, dword [esp + 0x18]
cmp edi, ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], ecx
jb 0x49e11a
cmp eax, 3
mov dword [esp + 0x14], edi
ja case.0x49e19d.1
jmp dword [eax*4 + 0x49e884]
mov dword [esp + 0x10], 2
jmp 0x49e2de
mov dword [esp + 0x10], 5
jmp 0x49e2eb
mov dword [esp + 0x10], 0x30
jmp 0x49e2de
mov dword [esp + 0x10], 5
jmp 0x49e2de
mov ebp, dword [esi + 0x4c]
mov ax, word [esi + 0xc42]
add ebp, edi
mov ecx, SysReAllocString
mov dword [esi + 0x4c], ebp
mov edx, dword [esi + 0x50]
adc edx, ebx
mov dword [esi + 0xc4e], ecx
mov dword [esi + 0x50], edx
mov dx, word [esi + 0xc44]
mov word [esi + 0xafe], dx
mov edx, dword [esi + 0xc4a]
mov dword [esi + 0xb04], edx
mov dx, word [esi + 0xc48]
mov word [esi + 0xb02], dx
mov dx, word [esi + 0xc46]
mov word [esi + 0xb00], dx
mov dx, word [esi + 0xc56]
mov dword [esi + 0xc52], ecx
mov dword [esi + 0xb08], ecx
mov word [esi + 0xb10], dx
mov dx, word [esi + 0xc58]
mov dword [esi + 0xb0c], ecx
mov cx, word [esi + 0xc40]
test al, 1
mov word [esi + 0xafc], ax
mov dword [esi + 0xaf6], 0x4034b50
mov word [esi + 0xafa], cx
mov word [esi + 0xb12], dx
mov dword [esi + 0xc84], ebx
je 0x49e291
mov dword [esi + 0xc84], 1
push 0x523a30
call fcn.0049f670
push 0x523a30
call fcn.0049d0d0
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x8ce2]
add esp, 8
cmp eax, ebx
je 0x49e2c5
push eax
call fcn.004af0b8
add esp, 4
mov dword [esi + 0x8ce2], ebx
mov eax, dword [esi + 0x8f50]
cmp eax, ebx
je 0x49e2de
push eax
call fcn.004af0b8
add esp, 4
mov dword [esi + 0x8f50], ebx
mov eax, dword [esp + 0x1c]
push eax
call fcn.004af0b8
add esp, 4
mov ebp, dword [esp + 0x2fc]
lea ecx, [esp + 0x28]
push ecx
push ebp
call fcn.0049d420
mov edi, dword [esp + 0x18]
add esp, 8
cmp edi, ebx
je 0x49e321
cmp edi, 0x2c
je 0x49e321
mov edx, dword [ebp + 0x28]
push edx
push 0x523a30
push edi
call fcn.0049a580
add esp, 0xc
jmp 0x49e32b
push ebp
push edi
call fcn.004a07d0
add esp, 8
mov eax, dword [esp + 0xb8]
mov dword [esi + 0x1a0], ebx
push eax
call fcn.0049e900
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e8
ret 4
cmp dword [esp + 0x38], ebx
jne 0x49e516
cmp dword [esp + 0x3c], ebx
jge 0x49e36e
mov ecx, dword [esp + 0x50]
push ecx
push 2
push 0x7a
jmp 0x49e814
lea edx, [esp + 0x28]
push edx
call fcn.0049af10
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x49e3b1
mov ecx, dword [esp + 0x2fc]
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.0049d420
push ebp
mov dword [esi + 0x1a0], ebx
call fcn.0049e900
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e8
ret 4
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x3c]
dec edx
cmp eax, edx
jle 0x49e40c
mov edi, dword [esp + 0x2fc]
lea eax, [esp + 0x28]
push eax
push edi
call fcn.0049d420
mov ecx, dword [edi + 0x28]
add esp, 8
push ecx
push 2
push 0x7b
call fcn.004a1f10
add esp, 8
push eax
push 0x19
call fcn.0049a580
push ebp
mov dword [esi + 0x1a0], ebx
call fcn.0049e900
add esp, 0x10
mov eax, 0x19
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e8
ret 4
cmp dword [esi + 0xc7c], ebx
je 0x49e46f
cmp dword [esp + 0x54], ebx
jne 0x49e46f
cmp dword [esi + 0x3c], ebx
jne 0x49e46f
cmp dword [esi + 0x44], ebx
jne 0x49e46f
lea eax, [esi + 0x318]
lea edx, [esi + 0x41c]
push eax
push edx
call fcn.004a1d60
add esp, 8
cmp eax, 1
jne 0x49e46f
push 0x523a30
push ebx
push ebx
push ebx
push 6
call fcn.0049fe00
push ebp
mov dword [esi + 0x1a0], ebx
call fcn.0049e900
add esp, 0x18
mov eax, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e8
ret 4
test byte [esp + 0x94], 4
je 0x49e496
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], 1
mov eax, dword [esp + 0x94]
and eax, 8
push eax
call fcn.004a18a0
add esp, 4
lea ecx, [esp + 0x28]
push ecx
call fcn.0049e980
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, ebx
mov dword [esi + 0x28], ebx
je 0x49e4b7
call fcn.004a19d0
mov dword [esi + 0x2c], ebx
cmp edi, ebx
je 0x49e4e0
cmp edi, 0x31
je 0x49e4e0
cmp edi, 0x30
je 0x49e4e0
mov edx, dword [esp + 0x50]
push edx
push 2
push 0x7c
call fcn.004a1f10
add esp, 8
push eax
push edi
call fcn.0049a580
add esp, 0xc
mov ecx, dword [esp + 0x2fc]
lea eax, [esp + 0x28]
push eax
push ecx
mov byte [esi + 0x8cfc], bl
mov dword [esi + 0x1a0], ebx
call fcn.0049d420
push ebp
call fcn.0049e900
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e8
ret 4
lea edx, [esp + 0x28]
push edx
call fcn.0049b0b0
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x49e569
mov ecx, dword [esp + 0x2fc]
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.0049d420
push ebp
mov dword [esi + 0x1a0], ebx
call fcn.0049e900
mov edx, dword [esp + 0x5c]
push edx
push 0x523a30
push edi
call fcn.0049a580
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e8
ret 4
mov eax, dword [esp + 0x74]
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x49e5c3
mov edi, dword [esp + 0x2fc]
lea eax, [esp + 0x28]
push eax
push edi
call fcn.0049d420
mov ecx, dword [edi + 0x28]
add esp, 8
push ecx
push 2
push 0x7d
call fcn.004a1f10
add esp, 8
push eax
push 0xb
call fcn.0049a580
push ebp
mov dword [esi + 0x1a0], ebx
call fcn.0049e900
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e8
ret 4
cmp dword [esi + 0xc7c], ebx
je 0x49e5fa
cmp dword [esp + 0x54], ebx
jne 0x49e5fa
cmp dword [esi + 0x3c], ebx
jne 0x49e5fa
cmp dword [esi + 0x44], ebx
jne 0x49e5fa
lea eax, [esi + 0x318]
lea edx, [esi + 0x41c]
push eax
push edx
call fcn.004a1d60
add esp, 8
cmp eax, 1
je 0x49e43f
mov dword [esi + 0x19c], 1
mov al, byte [esp + 0x94]
test al, 4
je 0x49e62c
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], 1
mov eax, dword [esp + 0x94]
and eax, 8
push eax
call fcn.004a18a0
add esp, 4
cmp dword [esp + 0x10], ebx
jle 0x49e765
mov dword [esp + 0x1c], 1
lea edx, [esp + 0x28]
lea ecx, [esp + 0x1c0]
push edx
mov dword [esp + 0x38], ecx
call fcn.0049bf20
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x49e6f8
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c0]
push ecx
push edi
and eax, 0xffff
push ebx
push 0x47
mov dword [esp + 0x4c], eax
call fcn.004a1f10
add esp, 8
lea edx, [esp + 0xc4]
push eax
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0xd0]
push eax
push ecx
call fcn.0049fc70
add esp, 0x1c
cmp eax, 1
je 0x49e6f1
lea edx, [esp + 0x28]
push edx
call fcn.0049e980
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x49e6da
cmp edi, 0x31
je 0x49e6da
cmp edi, 0x30
je 0x49e6d1
cmp edi, 0x28
jne 0x49e74a
cmp edi, 0x31
jne 0x49e765
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc eax
mov dword [esp + 0x1c], eax
dec eax
cmp eax, ecx
jge 0x49e765
jmp 0x49e63e
mov edi, 0x30
jmp 0x49e765
mov eax, dword [esp + 0x50]
push eax
push 2
push 0x6b
call fcn.004a1f10
add esp, 8
push eax
push edi
call fcn.0049a580
mov edx, dword [esp + 0x308]
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x44], ebx
push edx
mov dword [esi + 0x19c], ebx
mov dword [esi + 0x1a0], ebx
call fcn.0049d420
push ebp
call fcn.0049e900
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e8
ret 4
mov eax, dword [esp + 0x50]
push eax
push 2
push 0x7c
call fcn.004a1f10
add esp, 8
push eax
push edi
call fcn.0049a580
add esp, 0xc
mov eax, dword [esi + 0x24]
mov dword [esi + 0x28], ebx
cmp eax, ebx
mov dword [esi + 0x19c], ebx
je 0x49e77d
call fcn.004a19d0
mov dword [esi + 0x2c], ebx
mov edx, dword [esp + 0x2fc]
lea ecx, [esp + 0x28]
push ecx
mov byte [esi + 0x8cfc], bl
push edx
mov dword [esp + 0x3c], ebx
call fcn.0049d420
add esp, 8
cmp edi, ebx
je 0x49e7dc
cmp edi, 0x2c
je 0x49e7dc
mov eax, dword [esp + 0x2fc]
mov ecx, dword [eax + 0x28]
push ecx
push 0x523a30
push edi
call fcn.0049a580
add esp, 0xc
mov dword [esi + 0x1a0], ebx
push ebp
call fcn.0049e900
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e8
ret 4
mov edx, dword [esp + 0x2fc]
push edx
push edi
call fcn.004a07d0
add esp, 8
mov dword [esi + 0x1a0], ebx
push ebp
call fcn.0049e900
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e8
ret 4
mov ecx, dword [esp + 0x50]
push ecx
push 2
push 0x79
call fcn.004a1f10
add esp, 8
push eax
push 0x2f
call fcn.0049a580
push ebp
mov dword [esi + 0x1a0], ebx
call fcn.0049e900
add esp, 0x10
mov eax, 0x2f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e8
ret 4