Function at 0x403171
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x4599fd
call fcn.0045923c
sub esp, 0x834
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
lea eax, [edi + 0xb7c4]
push ecx
push eax
xor ebx, ebx
push str.masterconfig.ini
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], eax
call fcn.0040577e
push 0x398
call fcn.004441b8
add esp, 0x14
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x4031cc
push ebx
mov esi, eax
call fcn.004372e3
mov ebx, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push ebx
call fcn.00437e49
push 0x45cd2c
push str.allLanguages
mov esi, 0x45cd40
push esi
mov eax, ebx
call fcn.00437bd4
sub edi, eax
mov dword [ebp - 0x24], eax
mov ecx, eax
lea eax, [edi + 0x9376]
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x403200
mov edi, 0x3ff
push edi
lea eax, [ebp - 0x43f]
push 0
push eax
mov byte [ebp - 0x440], dl
call fcn.0044ded0
add esp, 0xc
push edi
lea eax, [ebp - 0x83f]
push 0
push eax
mov byte [ebp - 0x840], 0
call fcn.0044ded0
add esp, 0xc
mov edi, 0x45cbc7
push edi
push str.region_codes
push esi
mov eax, ebx
call fcn.00437bd4
lea ecx, [ebp - 0x440]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403259
push edi
push str.region_strings
push esi
mov eax, ebx
call fcn.00437bd4
lea ecx, [ebp - 0x840]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403277
push edi
push str.HardwareTrackingURL
push esi
mov eax, ebx
call fcn.00437bd4
mov ecx, dword [ebp + 8]
add ecx, 0xa376
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403298
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call fcn.004057b2
xor eax, eax
mov byte [ebp - 0x3c], 0
lea edi, [ebp - 0x3b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x30], 0
lea edi, [ebp - 0x2f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [0x475e78]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
add eax, 0xf28
push eax
mov ebx, 0x45cc74
lea eax, [ebp - 0x30]
push ebx
push eax
call edi
mov eax, dword [0x475e78]
add esp, 0x14
add eax, 0xf40
push eax
lea eax, [ebp - 0x3c]
push ebx
push eax
call edi
lea eax, [ebp - 0x440]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403303
sub eax, ecx
je 0x40336c
and dword [ebp - 0x18], 0
lea ebx, [ebp - 0x18]
lea eax, [ebp - 0x440]
call fcn.00402e26
mov edi, dword [ebp - 0x18]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov byte [ebp - 0xd], 0
test eax, eax
jle 0x403353
lea eax, [ebp - 0x30]
push eax
push dword [edi + ebx*4]
call fcn.00446420
neg eax
sbb al, al
inc al
or byte [ebp - 0xd], al
inc ebx
cmp ebx, dword [ebp - 0x14]
pop ecx
pop ecx
jl 0x403330
cmp byte [ebp - 0xd], 0
jne 0x40336c
push dword [edi]
mov eax, dword [ebp + 8]
add eax, 0xf28
push 0x45cd10
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, dword [ebp - 0x24]
and dword [ebp - 0x18], 0
lea ebx, [ebp - 0x18]
call fcn.00402e26
mov edi, dword [ebp - 0x18]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov byte [ebp - 0xd], 0
test eax, eax
jle 0x4033ae
lea eax, [ebp - 0x3c]
push eax
push dword [edi + ebx*4]
call fcn.00446420
neg eax
sbb al, al
inc al
or byte [ebp - 0xd], al
inc ebx
cmp ebx, dword [ebp - 0x14]
pop ecx
pop ecx
jl 0x40338b
cmp byte [ebp - 0xd], 0
jne 0x4033ca
push dword [edi]
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0xf40]
push 0x45cd10
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x4033cd
mov ebx, dword [ebp + 8]
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
push str.config.ini
call fcn.0040577e
push 0x398
call fcn.004441b8
add esp, 0x14
mov dword [ebp + 8], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x403418
push 0
mov esi, eax
call fcn.004372e3
mov dword [ebp + 8], eax
mov esi, 0x45cd40
jmp 0x40341c
and dword [ebp + 8], 0
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push dword [ebp + 8]
mov edi, 0x45cbc7
call fcn.00437e49
mov eax, dword [ebp + 8]
push edi
push str.WebOLR
push esi
call fcn.00437bd4
lea ecx, [ebx + 0xf58]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403448
mov eax, dword [ebp + 8]
push edi
push str.UpgradeServer
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x1758]
mov edx, ecx
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x403469
mov eax, dword [ebp + 8]
push edi
push str.urlmktg
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x1f58]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403488
mov eax, dword [ebp + 8]
push edi
push str.UninstallSurvey
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x2758]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4034a7
mov eax, dword [ebp + 8]
push edi
push str.TrackingUrl
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x2f58]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4034c6
mov eax, dword [ebp + 8]
push str.install:___eula.html
push str.urlStartPage
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x3758]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4034e9
mov eax, dword [ebp + 8]
push str.install:___autostart.html
push str.urlAutoStartPage
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x3f58]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x40350c
mov eax, dword [ebp + 8]
push str.install:___marketing.html
push str.urlEndPage
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x4758]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x40352f
mov eax, dword [ebp + 8]
push edi
push str.FlashCasinoURL
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x4f58]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x40354e
mov eax, dword [ebp + 8]
push edi
push str.CloseDialogMarketingURL
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x5758]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x40356d
mov eax, dword [ebp + 8]
push edi
push str.PCMChatURL
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x5f58]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x40358c
mov eax, dword [ebp + 8]
push edi
push str.AbortedInstallURL
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x6758]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4035ab
mov eax, dword [ebp + 8]
push edi
push str.CasinoURL
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x6f58]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4035ca
mov eax, dword [ebp + 8]
push str.install:___PromoQuitInstall.html
push str.HtmlExitDialogURL
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x7758]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4035ed
push 0
push str.PostHardwareTracking
push esi
push dword [ebp + 8]
call fcn.00437c15
push 0
push str.PostTracking
test eax, eax
push esi
push dword [ebp + 8]
setne al
mov byte [ebx + 0xab77], al
call fcn.00437c15
push 0
push str.PostPCMTracking
test eax, eax
push esi
push dword [ebp + 8]
setne al
mov byte [ebx + 0xab78], al
call fcn.00437c15
test eax, eax
push edi
setne al
push str.intername
mov byte [ebx + 0xab79], al
mov eax, dword [ebp + 8]
push esi
call fcn.00437bd4
lea edx, [ebx + 0x89dc]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x40365d
mov eax, dword [ebp + 8]
push edi
push str.InternalNameOverride
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x8b5c]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x40367c
mov eax, dword [ebp + 8]
push edi
push str.defaultinstallloc
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x8a5c]
mov edx, ecx
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x40369d
mov eax, dword [ebp + 8]
push edi
push str.registry
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x8adc]
mov edx, ecx
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x4036be
mov eax, dword [ebp + 8]
push edi
push str.extinstallname
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x88dc]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4036dd
mov eax, dword [ebp + 8]
push edi
push str.extinstallparm
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x895c]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4036fc
mov eax, dword [ebp + 8]
push edi
push str.pcmtrackingurl
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x7f58]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x40371b
push 0
push str.serverid
push esi
push dword [ebp + 8]
call fcn.00437c15
push 0x45cf88
push str.pcmversion
mov dword [ebx + 0x88d8], eax
mov eax, dword [ebp + 8]
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x8858]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403754
lea eax, [ebx + 0xf40]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x403767
sub eax, edx
sar eax, 1
jne 0x4037a0
mov eax, dword [ebp + 8]
push 0x45cd2c
push str.Lang
push esi
call fcn.00437bd4
push eax
lea eax, [ebx + 0xf40]
push 0x45cd10
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, dword [ebp + 8]
push edi
push str.Publisher
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x8bdc]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4037b5
mov eax, dword [ebp + 8]
push edi
push str.URLInfoAbout
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x8cdb]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4037d4
mov eax, dword [ebp + 8]
push edi
push str.Comments
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x8dda]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4037f3
mov eax, dword [ebp + 8]
push edi
push str.Contact
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x8ed9]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403812
push 0
push str.HiddenInstall
push esi
push dword [ebp + 8]
call fcn.00437c15
mov ecx, dword [0x475e78]
push 0
push str.outputDebugStrings
test eax, eax
push esi
push dword [ebp + 8]
setne al
mov byte [ecx + 0xb7c2], al
call fcn.00437c15
mov ecx, dword [0x475e78]
test eax, eax
setne al
mov byte [ecx + 0xb7c3], al
mov eax, dword [0x475e78]
cmp byte [eax + 0xb7c2], 0
je 0x403871
xor eax, eax
inc eax
jmp 0x403881
push 0
push str.fAutorun
push esi
push dword [ebp + 8]
call fcn.00437c15
push 2
push str.fInstallType
push esi
push dword [ebp + 8]
mov dword [ebx + 0x906a], eax
call fcn.00437c15
push 0
push str.fExternalSurvey
push esi
push dword [ebp + 8]
mov dword [ebx + 0x9066], eax
call fcn.00437c15
push 0
push str.flags
push esi
push dword [ebp + 8]
mov dword [ebx + 0x906e], eax
call fcn.00437c15
push 3
push str.concurrentDownloads
push esi
push dword [ebp + 8]
mov byte [ebx + 0x9375], al
call fcn.00437c15
mov dword [ebx + 0x9072], eax
lea eax, [ebx + 0x89dc]
push eax
mov eax, dword [ebp + 8]
push str.ViperInternalName
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x9175]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4038fa
lea eax, [ebx + 0x1758]
push eax
mov eax, dword [ebp + 8]
push str.ViperUpgradeServer
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x9076]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x40391f
lea eax, [ebx + 0x8a5c]
push eax
mov eax, dword [ebp + 8]
push str.ViperDefaultInstall
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x91f5]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403944
lea eax, [ebx + 0x8adc]
push eax
mov eax, dword [ebp + 8]
push str.ViperRegistry
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x9275]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403969
mov eax, dword [ebp + 8]
push edi
push str.ViperGameList
push esi
call fcn.00437bd4
lea ecx, [ebx + 0x92f5]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403988
mov eax, dword [ebp + 8]
push 0x45cbc7
push str.GlobalCacheDir
push esi
call fcn.00437bd4
mov edi, eax
call fcn.004025c6
mov ecx, ebx
sub ecx, eax
mov dword [ebp - 0x14], eax
lea edi, [ecx + 0xab7b]
mov cl, byte [eax]
mov byte [eax + edi], cl
inc eax
test cl, cl
jne 0x4039b9
mov edi, dword [ebp + 8]
push 0xa
push str.DownloadRetryLimit
push esi
push edi
call fcn.00437c15
push 0x1d4c0
push str.PacketTimeout
push esi
push edi
mov dword [ebx + 0xac7f], eax
call fcn.00437c15
push dword [ebp - 0x14]
mov dword [ebx + 0xac83], eax
call fcn.00444794
pop ecx
push 0
push str.fLGARequirements
push esi
push edi
call fcn.00437c15
push 0
push str.fTrackBeforeEula
push esi
push edi
mov dword [ebx + 0xac87], eax
call fcn.00437c15
mov ecx, dword [0x475e78]
push 0
push str.enableIcabs
push esi
push edi
mov dword [ecx + 0xac8b], eax
call fcn.00437c15
mov ecx, dword [0x475e78]
push 0
push str.delayedExternalLaunch
test eax, eax
push esi
setne al
push edi
mov byte [ecx + 0xab7a], al
call fcn.00437c15
mov ecx, dword [0x475e78]
push 0
push str.getExternalInstaller
test eax, eax
push esi
setne al
push edi
mov byte [ecx + 0xb7a0], al
call fcn.00437c15
mov ecx, dword [0x475e78]
test eax, eax
mov edi, 0x45cbc7
push edi
setne al
push str.ExternalInstallerLocation
mov byte [ecx + 0xac8f], al
mov eax, dword [ebp + 8]
push esi
call fcn.00437bd4
mov ecx, dword [0x475e78]
add ecx, 0xac90
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403aa5
mov eax, dword [ebp + 8]
push edi
push str.ExternalInstallerParams
push esi
call fcn.00437bd4
mov ecx, dword [0x475e78]
add ecx, 0xb490
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403aca
mov eax, dword [ebp + 8]
push edi
push str.ExternalInstallerHash
push esi
call fcn.00437bd4
mov ecx, dword [0x475e78]
add ecx, 0xb594
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403aef
mov eax, dword [ebp + 8]
push edi
push str.ExternalInstallerRegistry
push esi
call fcn.00437bd4
mov ecx, dword [0x475e78]
add ecx, 0xb698
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403b14
mov edi, dword [ebp + 8]
push 0
push str.ExternalInstallerSize
push esi
push edi
call fcn.00437c15
mov ecx, dword [0x475e78]
push 0x23c
push str.MarketingIFrameWidth
push esi
push edi
mov dword [ecx + 0xb79c], eax
call fcn.00437c15
mov ecx, dword [0x475e78]
push 0xd2
push str.MarketingIFrameHeight
push esi
push edi
mov dword [ecx + 0xb7a1], eax
call fcn.00437c15
mov ecx, dword [0x475e78]
push 0x28a
push str.HTMLQuitDialogWidth
push esi
push edi
mov dword [ecx + 0xb7a5], eax
call fcn.00437c15
mov ecx, dword [0x475e78]
push 0x172
push str.HTMLQuitDialogHeight
push esi
push edi
mov dword [ecx + 0xb7a9], eax
call fcn.00437c15
mov ecx, dword [0x475e78]
mov dword [ecx + 0xb7ad], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
xor esi, esi
push str.icon.ico
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
call fcn.0040577e
mov eax, dword [ebp - 0x14]
add esp, 0x10
cmp eax, esi
je 0x403be9
mov ecx, dword [ebp - 0x1c]
cmp ecx, esi
je 0x403be9
mov dword [ebx + 0xe1c], eax
mov dword [ebx + 0xe20], ecx
mov eax, dword [0x475e78]
mov ecx, dword [eax + 4]
and cl, 1
dec cl
neg cl
sbb cl, cl
inc cl
mov byte [eax + 0xb7b1], cl
mov eax, dword [0x475e78]
mov ecx, dword [eax + 4]
and cl, 2
cmp cl, 2
sete cl
mov byte [eax + 0xb7b2], cl
mov eax, dword [0x475e78]
mov ecx, dword [eax + 4]
and cl, 4
cmp cl, 4
sete cl
mov byte [eax + 0xb7b3], cl
mov eax, dword [0x475e78]
mov ecx, dword [eax + 4]
and cl, 8
cmp cl, 8
sete cl
mov byte [eax + 0xb7b4], cl
mov eax, dword [0x475e78]
mov ecx, dword [eax + 4]
and cl, 0x10
cmp cl, 0x10
sete cl
mov byte [eax + 0xb7b5], cl
mov eax, dword [0x475e78]
mov edx, dword [eax + 4]
mov ecx, 0x400
and edx, ecx
cmp edx, ecx
sete cl
mov byte [eax + 0xb7bf], cl
mov eax, dword [0x475e78]
mov edx, dword [eax + 4]
mov ecx, 0x4000
and edx, ecx
cmp edx, ecx
sete cl
mov byte [eax + 0xb7c0], cl
mov eax, dword [0x475e78]
mov edx, dword [eax + 4]
mov ecx, 0x8000
and edx, ecx
cmp edx, ecx
sete cl
mov byte [eax + 0xb7c1], cl
mov eax, dword [0x475e78]
mov ecx, dword [eax + 4]
shr ecx, 0xb
and cl, 1
mov byte [eax + 0xb7b6], cl
mov eax, dword [0x475e78]
mov ecx, dword [eax + 4]
shr ecx, 0xc
and cl, 1
mov byte [eax + 0xb7b7], cl
mov eax, dword [0x475e78]
mov ecx, dword [eax + 4]
shr ecx, 0xd
and cl, 1
mov byte [eax + 0xb7b8], cl
mov eax, dword [0x475e78]
cmp byte [eax + 0xb7b6], 0
jne 0x403d0c
cmp byte [eax + 0xb7b7], 0
jne 0x403d0c
cmp byte [eax + 0xb7b8], 0
jne 0x403d0c
xor ecx, ecx
jmp 0x403d0f
xor ecx, ecx
inc ecx
mov byte [eax + 0xb7b9], cl
mov eax, dword [0x475e78]
mov ecx, dword [eax + 4]
and cl, 0x20
cmp cl, 0x20
sete cl
mov byte [eax + 0xb7ba], cl
mov eax, dword [0x475e78]
mov ecx, dword [eax + 4]
and cl, 0x40
cmp cl, 0x40
sete cl
mov byte [eax + 0xb7bb], cl
mov eax, dword [0x475e78]
mov ecx, dword [eax + 4]
and cl, 0x80
cmp cl, 0x80
sete cl
mov byte [eax + 0xb7bc], cl
mov eax, dword [0x475e78]
mov edx, dword [eax + 4]
mov ecx, 0x100
and edx, ecx
cmp edx, ecx
sete cl
mov byte [eax + 0xb7bd], cl
mov eax, dword [0x475e78]
mov edx, dword [eax + 4]
mov ecx, 0x200
and edx, ecx
cmp edx, ecx
sete cl
cmp byte [0x475e74], 0
mov byte [eax + 0xb7be], cl
je 0x403e67
mov eax, dword [0x475e78]
mov byte [eax + 0xb7b1], 1
mov eax, dword [0x475e78]
mov byte [eax + 0xb7b2], 1
mov eax, dword [0x475e78]
mov byte [eax + 0xb7b3], 1
mov eax, dword [0x475e78]
mov byte [eax + 0xb7b4], 1
mov eax, dword [0x475e78]
mov byte [eax + 0xb7b5], 1
mov eax, dword [0x475e78]
mov byte [eax + 0xb7bf], 1
mov eax, dword [0x475e78]
mov byte [eax + 0xb7c0], 1
mov eax, dword [0x475e78]
mov byte [eax + 0xb7c1], 1
mov eax, dword [0x475e78]
mov byte [eax + 0xb7b9], 1
mov eax, dword [0x475e78]
mov byte [eax + 0xb7b6], 1
mov eax, dword [0x475e78]
mov byte [eax + 0xb7b7], 1
mov eax, dword [0x475e78]
mov byte [eax + 0xb7b8], 1
mov eax, dword [0x475e78]
mov byte [eax + 0xb7ba], 1
mov eax, dword [0x475e78]
mov byte [eax + 0xb7bb], 1
mov eax, dword [0x475e78]
mov byte [eax + 0xb7bc], 1
mov eax, dword [0x475e78]
mov byte [eax + 0xb7bd], 1
mov eax, dword [0x475e78]
mov byte [eax + 0xb7be], 1
cmp dword [0x475e7c], esi
jne 0x403f5d
push dword [ebp - 0x24]
call fcn.00402dab
pop ecx
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.00402ef0
cmp dword [0x475e7c], 0
pop ecx
pop ecx
mov edi, 0x475e7c
je 0x403f5d
mov esi, dword [ebp - 0x20]
and dword [ebp - 0x1c], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [edi]
push str.stringtable.res
call fcn.00405623
add esp, 0x14
cmp dword [ebp - 0x1c], 0
je 0x403eea
mov eax, dword [edi]
push dword [eax + 0x14]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.00402fb8
add esp, 0xc
push dword [ebp - 0x1c]
push esi
call fcn.004057b2
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [edi]
push str.theme.res
call fcn.00405623
add esp, 0x14
cmp dword [ebp - 0x1c], 0
je 0x403f26
mov eax, dword [edi]
push dword [eax + 0x14]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.00402fb8
add esp, 0xc
push dword [ebp - 0x1c]
push esi
call fcn.004057b2
pop ecx
pop ecx
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
call fcn.004030b5
lea eax, [ebx + 0xf40]
push eax
push dword [edi]
call fcn.00444975
pop ecx
pop ecx
test eax, eax
jne 0x403f4f
mov eax, dword [edi]
mov eax, dword [eax + 0x14]
mov dword [ebx + 0x8fd8], eax
mov edi, dword [edi]
add edi, 0x18
cmp dword [edi], 0
jne 0x403ea3
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call fcn.004057b2
cmp dword [ebp + 8], 0
pop ecx
pop ecx
je 0x403f78
mov esi, dword [ebp + 8]
call fcn.00403f87
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret