Function at 0x403178
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x4549e7
call fcn.004542cc
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.00405796
push 0x398
call fcn.0043f248
add esp, 0x14
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x4031d3
push ebx
mov esi, eax
call fcn.00432565
mov ebx, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push ebx
call fcn.004330cb
push 0x457d2c
push str.allLanguages
mov esi, str.config
push esi
mov eax, ebx
call fcn.00432e56
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 0x403207
mov edi, 0x3ff
push edi
lea eax, [ebp - 0x43f]
push 0
push eax
mov byte [ebp - 0x440], dl
call fcn.00449020
add esp, 0xc
push edi
lea eax, [ebp - 0x83f]
push 0
push eax
mov byte [ebp - 0x840], 0
call fcn.00449020
add esp, 0xc
mov edi, 0x457bc7
push edi
push str.region_codes
push esi
mov eax, ebx
call fcn.00432e56
lea ecx, [ebp - 0x440]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403260
push edi
push str.region_strings
push esi
mov eax, ebx
call fcn.00432e56
lea ecx, [ebp - 0x840]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x40327e
push edi
push str.HardwareTrackingURL
push esi
mov eax, ebx
call fcn.00432e56
mov ecx, dword [ebp + 8]
add ecx, 0xa376
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x40329f
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call fcn.004057ca
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 [0x470e78]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
add eax, 0xf28
push eax
mov ebx, 0x457c74
lea eax, [ebp - 0x30]
push ebx
push eax
call edi
mov eax, dword [0x470e78]
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 0x40330a
sub eax, ecx
je 0x403373
and dword [ebp - 0x18], 0
lea ebx, [ebp - 0x18]
lea eax, [ebp - 0x440]
call fcn.00402e2d
mov edi, dword [ebp - 0x18]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov byte [ebp - 0xd], 0
test eax, eax
jle 0x40335a
lea eax, [ebp - 0x30]
push eax
push dword [edi + ebx*4]
call fcn.00441570
neg eax
sbb al, al
inc al
or byte [ebp - 0xd], al
inc ebx
cmp ebx, dword [ebp - 0x14]
pop ecx
pop ecx
jl 0x403337
cmp byte [ebp - 0xd], 0
jne 0x403373
push dword [edi]
mov eax, dword [ebp + 8]
add eax, 0xf28
push 0x457d10
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.00402e2d
mov edi, dword [ebp - 0x18]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov byte [ebp - 0xd], 0
test eax, eax
jle 0x4033b5
lea eax, [ebp - 0x3c]
push eax
push dword [edi + ebx*4]
call fcn.00441570
neg eax
sbb al, al
inc al
or byte [ebp - 0xd], al
inc ebx
cmp ebx, dword [ebp - 0x14]
pop ecx
pop ecx
jl 0x403392
cmp byte [ebp - 0xd], 0
jne 0x4033d1
push dword [edi]
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0xf40]
push 0x457d10
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x4033d4
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.00405796
push 0x398
call fcn.0043f248
add esp, 0x14
mov dword [ebp + 8], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x40341f
push 0
mov esi, eax
call fcn.00432565
mov dword [ebp + 8], eax
mov esi, str.config
jmp 0x403423
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, 0x457bc7
call fcn.004330cb
mov eax, dword [ebp + 8]
push edi
push str.WebOLR
push esi
call fcn.00432e56
lea ecx, [ebx + 0xf58]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x40344f
mov eax, dword [ebp + 8]
push edi
push str.UpgradeServer
push esi
call fcn.00432e56
lea ecx, [ebx + 0x1758]
mov edx, ecx
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x403470
mov eax, dword [ebp + 8]
push edi
push str.urlmktg
push esi
call fcn.00432e56
lea ecx, [ebx + 0x1f58]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x40348f
mov eax, dword [ebp + 8]
push edi
push str.UninstallSurvey
push esi
call fcn.00432e56
lea ecx, [ebx + 0x2758]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4034ae
mov eax, dword [ebp + 8]
push edi
push str.TrackingUrl
push esi
call fcn.00432e56
lea ecx, [ebx + 0x2f58]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4034cd
mov eax, dword [ebp + 8]
push str.install:___eula.html
push str.urlStartPage
push esi
call fcn.00432e56
lea ecx, [ebx + 0x3758]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4034f0
mov eax, dword [ebp + 8]
push str.install:___autostart.html
push str.urlAutoStartPage
push esi
call fcn.00432e56
lea ecx, [ebx + 0x3f58]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403513
mov eax, dword [ebp + 8]
push str.install:___marketing.html
push str.urlEndPage
push esi
call fcn.00432e56
lea ecx, [ebx + 0x4758]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403536
mov eax, dword [ebp + 8]
push edi
push str.FlashCasinoURL
push esi
call fcn.00432e56
lea ecx, [ebx + 0x4f58]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403555
mov eax, dword [ebp + 8]
push edi
push str.CloseDialogMarketingURL
push esi
call fcn.00432e56
lea ecx, [ebx + 0x5758]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403574
mov eax, dword [ebp + 8]
push edi
push str.PCMChatURL
push esi
call fcn.00432e56
lea ecx, [ebx + 0x5f58]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403593
mov eax, dword [ebp + 8]
push edi
push str.AbortedInstallURL
push esi
call fcn.00432e56
lea ecx, [ebx + 0x6758]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4035b2
mov eax, dword [ebp + 8]
push edi
push str.CasinoURL
push esi
call fcn.00432e56
lea ecx, [ebx + 0x6f58]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4035d1
mov eax, dword [ebp + 8]
push str.install:___PromoQuitInstall.html
push str.HtmlExitDialogURL
push esi
call fcn.00432e56
lea ecx, [ebx + 0x7758]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4035f4
push 0
push str.PostHardwareTracking
push esi
push dword [ebp + 8]
call fcn.00432e97
push 0
push str.PostTracking
test eax, eax
push esi
push dword [ebp + 8]
setne al
mov byte [ebx + 0xab77], al
call fcn.00432e97
push 0
push str.PostPCMTracking
test eax, eax
push esi
push dword [ebp + 8]
setne al
mov byte [ebx + 0xab78], al
call fcn.00432e97
test eax, eax
push edi
setne al
push str.intername
mov byte [ebx + 0xab79], al
mov eax, dword [ebp + 8]
push esi
call fcn.00432e56
lea edx, [ebx + 0x89dc]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x403664
mov eax, dword [ebp + 8]
push edi
push str.InternalNameOverride
push esi
call fcn.00432e56
lea ecx, [ebx + 0x8b5c]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403683
mov eax, dword [ebp + 8]
push edi
push str.defaultinstallloc
push esi
call fcn.00432e56
lea ecx, [ebx + 0x8a5c]
mov edx, ecx
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x4036a4
mov eax, dword [ebp + 8]
push edi
push str.registry
push esi
call fcn.00432e56
lea ecx, [ebx + 0x8adc]
mov edx, ecx
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x4036c5
mov eax, dword [ebp + 8]
push edi
push str.extinstallname
push esi
call fcn.00432e56
lea ecx, [ebx + 0x88dc]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4036e4
mov eax, dword [ebp + 8]
push edi
push str.extinstallparm
push esi
call fcn.00432e56
lea ecx, [ebx + 0x895c]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403703
mov eax, dword [ebp + 8]
push edi
push str.pcmtrackingurl
push esi
call fcn.00432e56
lea ecx, [ebx + 0x7f58]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403722
push 0
push str.serverid
push esi
push dword [ebp + 8]
call fcn.00432e97
push 0x457f88
push str.pcmversion
mov dword [ebx + 0x88d8], eax
mov eax, dword [ebp + 8]
push esi
call fcn.00432e56
lea ecx, [ebx + 0x8858]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x40375b
lea eax, [ebx + 0xf40]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40376e
sub eax, edx
sar eax, 1
jne 0x4037a7
mov eax, dword [ebp + 8]
push 0x457d2c
push str.Lang
push esi
call fcn.00432e56
push eax
lea eax, [ebx + 0xf40]
push 0x457d10
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.00432e56
lea ecx, [ebx + 0x8bdc]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4037bc
mov eax, dword [ebp + 8]
push edi
push str.URLInfoAbout
push esi
call fcn.00432e56
lea ecx, [ebx + 0x8cdb]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4037db
mov eax, dword [ebp + 8]
push edi
push 0x457fbc
push esi
call fcn.00432e56
lea ecx, [ebx + 0x8dda]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x4037fa
mov eax, dword [ebp + 8]
push edi
push str.Contact
push esi
call fcn.00432e56
lea ecx, [ebx + 0x8ed9]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403819
push 0
push str.HiddenInstall
push esi
push dword [ebp + 8]
call fcn.00432e97
mov ecx, dword [0x470e78]
push 0
push str.outputDebugStrings
test eax, eax
push esi
push dword [ebp + 8]
setne al
mov byte [ecx + 0xb7c2], al
call fcn.00432e97
mov ecx, dword [0x470e78]
test eax, eax
setne al
mov byte [ecx + 0xb7c3], al
mov eax, dword [0x470e78]
cmp byte [eax + 0xb7c2], 0
je 0x403878
xor eax, eax
inc eax
jmp 0x403888
push 0
push str.fAutorun
push esi
push dword [ebp + 8]
call fcn.00432e97
push 2
push str.fInstallType
push esi
push dword [ebp + 8]
mov dword [ebx + 0x906a], eax
call fcn.00432e97
push 0
push str.fExternalSurvey
push esi
push dword [ebp + 8]
mov dword [ebx + 0x9066], eax
call fcn.00432e97
push 0
push str.flags
push esi
push dword [ebp + 8]
mov dword [ebx + 0x906e], eax
call fcn.00432e97
push 3
push str.concurrentDownloads
push esi
push dword [ebp + 8]
mov byte [ebx + 0x9375], al
call fcn.00432e97
mov dword [ebx + 0x9072], eax
lea eax, [ebx + 0x89dc]
push eax
mov eax, dword [ebp + 8]
push str.ViperInternalName
push esi
call fcn.00432e56
lea ecx, [ebx + 0x9175]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403901
lea eax, [ebx + 0x1758]
push eax
mov eax, dword [ebp + 8]
push str.ViperUpgradeServer
push esi
call fcn.00432e56
lea ecx, [ebx + 0x9076]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403926
lea eax, [ebx + 0x8a5c]
push eax
mov eax, dword [ebp + 8]
push str.ViperDefaultInstall
push esi
call fcn.00432e56
lea ecx, [ebx + 0x91f5]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x40394b
lea eax, [ebx + 0x8adc]
push eax
mov eax, dword [ebp + 8]
push str.ViperRegistry
push esi
call fcn.00432e56
lea ecx, [ebx + 0x9275]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403970
mov eax, dword [ebp + 8]
push edi
push str.ViperGameList
push esi
call fcn.00432e56
lea ecx, [ebx + 0x92f5]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x40398f
mov eax, dword [ebp + 8]
push 0x457bc7
push str.GlobalCacheDir
push esi
call fcn.00432e56
mov edi, eax
call fcn.004025cd
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 0x4039c0
mov edi, dword [ebp + 8]
push 0xa
push str.DownloadRetryLimit
push esi
push edi
call fcn.00432e97
push 0x1d4c0
push str.PacketTimeout
push esi
push edi
mov dword [ebx + 0xac7f], eax
call fcn.00432e97
push dword [ebp - 0x14]
mov dword [ebx + 0xac83], eax
call fcn.0043f824
pop ecx
push 0
push str.fLGARequirements
push esi
push edi
call fcn.00432e97
push 0
push str.fTrackBeforeEula
push esi
push edi
mov dword [ebx + 0xac87], eax
call fcn.00432e97
mov ecx, dword [0x470e78]
push 0
push str.enableIcabs
push esi
push edi
mov dword [ecx + 0xac8b], eax
call fcn.00432e97
mov ecx, dword [0x470e78]
push 0
push str.delayedExternalLaunch
test eax, eax
push esi
setne al
push edi
mov byte [ecx + 0xab7a], al
call fcn.00432e97
mov ecx, dword [0x470e78]
push 0
push str.getExternalInstaller
test eax, eax
push esi
setne al
push edi
mov byte [ecx + 0xb7a0], al
call fcn.00432e97
mov ecx, dword [0x470e78]
test eax, eax
mov edi, 0x457bc7
push edi
setne al
push str.ExternalInstallerLocation
mov byte [ecx + 0xac8f], al
mov eax, dword [ebp + 8]
push esi
call fcn.00432e56
mov ecx, dword [0x470e78]
add ecx, 0xac90
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403aac
mov eax, dword [ebp + 8]
push edi
push str.ExternalInstallerParams
push esi
call fcn.00432e56
mov ecx, dword [0x470e78]
add ecx, 0xb490
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403ad1
mov eax, dword [ebp + 8]
push edi
push str.ExternalInstallerHash
push esi
call fcn.00432e56
mov ecx, dword [0x470e78]
add ecx, 0xb594
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403af6
mov eax, dword [ebp + 8]
push edi
push str.ExternalInstallerRegistry
push esi
call fcn.00432e56
mov ecx, dword [0x470e78]
add ecx, 0xb698
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x403b1b
mov edi, dword [ebp + 8]
push 0
push str.ExternalInstallerSize
push esi
push edi
call fcn.00432e97
mov ecx, dword [0x470e78]
push 0x23c
push str.MarketingIFrameWidth
push esi
push edi
mov dword [ecx + 0xb79c], eax
call fcn.00432e97
mov ecx, dword [0x470e78]
push 0xd2
push str.MarketingIFrameHeight
push esi
push edi
mov dword [ecx + 0xb7a1], eax
call fcn.00432e97
mov ecx, dword [0x470e78]
push 0x28a
push str.HTMLQuitDialogWidth
push esi
push edi
mov dword [ecx + 0xb7a5], eax
call fcn.00432e97
mov ecx, dword [0x470e78]
push 0x172
push str.HTMLQuitDialogHeight
push esi
push edi
mov dword [ecx + 0xb7a9], eax
call fcn.00432e97
mov ecx, dword [0x470e78]
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.00405796
mov eax, dword [ebp - 0x14]
add esp, 0x10
cmp eax, esi
je 0x403bf0
mov ecx, dword [ebp - 0x1c]
cmp ecx, esi
je 0x403bf0
mov dword [ebx + 0xe1c], eax
mov dword [ebx + 0xe20], ecx
mov eax, dword [0x470e78]
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 [0x470e78]
mov ecx, dword [eax + 4]
and cl, 2
cmp cl, 2
sete cl
mov byte [eax + 0xb7b2], cl
mov eax, dword [0x470e78]
mov ecx, dword [eax + 4]
and cl, 4
cmp cl, 4
sete cl
mov byte [eax + 0xb7b3], cl
mov eax, dword [0x470e78]
mov ecx, dword [eax + 4]
and cl, 8
cmp cl, 8
sete cl
mov byte [eax + 0xb7b4], cl
mov eax, dword [0x470e78]
mov ecx, dword [eax + 4]
and cl, 0x10
cmp cl, 0x10
sete cl
mov byte [eax + 0xb7b5], cl
mov eax, dword [0x470e78]
mov edx, dword [eax + 4]
mov ecx, 0x400
and edx, ecx
cmp edx, ecx
sete cl
mov byte [eax + 0xb7bf], cl
mov eax, dword [0x470e78]
mov edx, dword [eax + 4]
mov ecx, 0x4000
and edx, ecx
cmp edx, ecx
sete cl
mov byte [eax + 0xb7c0], cl
mov eax, dword [0x470e78]
mov edx, dword [eax + 4]
mov ecx, 0x8000
and edx, ecx
cmp edx, ecx
sete cl
mov byte [eax + 0xb7c1], cl
mov eax, dword [0x470e78]
mov ecx, dword [eax + 4]
shr ecx, 0xb
and cl, 1
mov byte [eax + 0xb7b6], cl
mov eax, dword [0x470e78]
mov ecx, dword [eax + 4]
shr ecx, 0xc
and cl, 1
mov byte [eax + 0xb7b7], cl
mov eax, dword [0x470e78]
mov ecx, dword [eax + 4]
shr ecx, 0xd
and cl, 1
mov byte [eax + 0xb7b8], cl
mov eax, dword [0x470e78]
cmp byte [eax + 0xb7b6], 0
jne 0x403d13
cmp byte [eax + 0xb7b7], 0
jne 0x403d13
cmp byte [eax + 0xb7b8], 0
jne 0x403d13
xor ecx, ecx
jmp 0x403d16
xor ecx, ecx
inc ecx
mov byte [eax + 0xb7b9], cl
mov eax, dword [0x470e78]
mov ecx, dword [eax + 4]
and cl, 0x20
cmp cl, 0x20
sete cl
mov byte [eax + 0xb7ba], cl
mov eax, dword [0x470e78]
mov ecx, dword [eax + 4]
and cl, 0x40
cmp cl, 0x40
sete cl
mov byte [eax + 0xb7bb], cl
mov eax, dword [0x470e78]
mov ecx, dword [eax + 4]
and cl, 0x80
cmp cl, 0x80
sete cl
mov byte [eax + 0xb7bc], cl
mov eax, dword [0x470e78]
mov edx, dword [eax + 4]
mov ecx, 0x100
and edx, ecx
cmp edx, ecx
sete cl
mov byte [eax + 0xb7bd], cl
mov eax, dword [0x470e78]
mov edx, dword [eax + 4]
mov ecx, 0x200
and edx, ecx
cmp edx, ecx
sete cl
cmp byte [0x470e74], 0
mov byte [eax + 0xb7be], cl
je 0x403e6e
mov eax, dword [0x470e78]
mov byte [eax + 0xb7b1], 1
mov eax, dword [0x470e78]
mov byte [eax + 0xb7b2], 1
mov eax, dword [0x470e78]
mov byte [eax + 0xb7b3], 1
mov eax, dword [0x470e78]
mov byte [eax + 0xb7b4], 1
mov eax, dword [0x470e78]
mov byte [eax + 0xb7b5], 1
mov eax, dword [0x470e78]
mov byte [eax + 0xb7bf], 1
mov eax, dword [0x470e78]
mov byte [eax + 0xb7c0], 1
mov eax, dword [0x470e78]
mov byte [eax + 0xb7c1], 1
mov eax, dword [0x470e78]
mov byte [eax + 0xb7b9], 1
mov eax, dword [0x470e78]
mov byte [eax + 0xb7b6], 1
mov eax, dword [0x470e78]
mov byte [eax + 0xb7b7], 1
mov eax, dword [0x470e78]
mov byte [eax + 0xb7b8], 1
mov eax, dword [0x470e78]
mov byte [eax + 0xb7ba], 1
mov eax, dword [0x470e78]
mov byte [eax + 0xb7bb], 1
mov eax, dword [0x470e78]
mov byte [eax + 0xb7bc], 1
mov eax, dword [0x470e78]
mov byte [eax + 0xb7bd], 1
mov eax, dword [0x470e78]
mov byte [eax + 0xb7be], 1
cmp dword [0x470e7c], esi
jne 0x403f64
push dword [ebp - 0x24]
call fcn.00402db2
pop ecx
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.00402ef7
cmp dword [0x470e7c], 0
pop ecx
pop ecx
mov edi, 0x470e7c
je 0x403f64
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.0040563b
add esp, 0x14
cmp dword [ebp - 0x1c], 0
je 0x403ef1
mov eax, dword [edi]
push dword [eax + 0x14]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.00402fbf
add esp, 0xc
push dword [ebp - 0x1c]
push esi
call fcn.004057ca
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.0040563b
add esp, 0x14
cmp dword [ebp - 0x1c], 0
je 0x403f2d
mov eax, dword [edi]
push dword [eax + 0x14]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.00402fbf
add esp, 0xc
push dword [ebp - 0x1c]
push esi
call fcn.004057ca
pop ecx
pop ecx
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
call fcn.004030bc
lea eax, [ebx + 0xf40]
push eax
push dword [edi]
call fcn.0043fa05
pop ecx
pop ecx
test eax, eax
jne 0x403f56
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 0x403eaa
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call fcn.004057ca
cmp dword [ebp + 8], 0
pop ecx
pop ecx
je 0x403f7f
mov esi, dword [ebp + 8]
call fcn.00403f8e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret