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

Disassembly:
push 0xffffffffffffffff
push 0x52b814
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x55bb24]
xor eax, esp
mov dword [esp + 0x1d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55bb24]
xor eax, esp
push eax
lea eax, [esp + 0x1ec]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1fc]
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1f4], 2
call fcn.00421ba0
mov dword [esp + 0x20], eax
mov byte [eax + 0x45], 1
mov eax, dword [esp + 0x20]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x20]
mov dword [eax], eax
mov eax, dword [esp + 0x20]
mov dword [eax + 8], eax
mov dword [esp + 0x24], ebx
mov byte [esp + 0x1f4], 3
lea edi, [esp + 0x3c]
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.004cc9db
mov edx, str.locale.xml
mov ecx, eax
lea edi, [esp + 0x120]
mov byte [esp + 0x1f4], 4
call fcn.0041ad70
mov esi, 8
mov byte [esp + 0x1f4], 6
cmp dword [esp + 0x54], esi
jb 0x420503
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004f0cfc
add esp, 4
xor edx, edx
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], dx
call fcn.004cefff
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
push 0x100
call eax
mov edi, 0x10
test al, al
je 0x4205eb
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x108]
push edx
call fcn.004022c0
add esp, 8
push 0x534dc4
push ecx
push eax
push ecx
push 0x534dd4
push ecx
push 0x23
push ecx
push 0x534dd8
push ecx
push str.LoadLocale
push ecx
push 0x534dc0
push ecx
mov byte [esp + 0x22c], 7
call fcn.004cf0d6
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00402b90
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405890
add esp, 0xc
push eax
call fcn.00405660
add esp, 8
mov byte [esp + 0x1f4], 6
cmp dword [esp + 0x11c], edi
jb 0x4205e1
mov eax, dword [esp + 0x108]
push eax
call fcn.004f0cfc
add esp, 4
push 0x100
call fcn.004cf0e5
call fcn.004cefff
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
push 0x100
call eax
test al, al
je 0x420690
push 0x534dc4
push ecx
lea ecx, [esp + 0x208]
push ecx
push ecx
push str.Locale:
push ecx
push 0x534dd4
push ecx
push 0x24
push ecx
push 0x534dd8
push ecx
push str.LoadLocale
push ecx
push 0x534dc0
push ecx
call fcn.004cf0d6
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00402b90
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405890
add esp, 0xc
push eax
call fcn.00405660
add esp, 8
push 0x100
call fcn.004cf0e5
call fcn.004cefff
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
push 0x100
call eax
test al, al
je 0x420735
push 0x534dc4
push ecx
lea ecx, [esp + 0x224]
push ecx
push ecx
push str.Dialog:
push ecx
push 0x534dd4
push ecx
push 0x25
push ecx
push 0x534dd8
push ecx
push str.LoadLocale
push ecx
push 0x534dc0
push ecx
call fcn.004cf0d6
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00402b90
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405890
add esp, 0xc
push eax
call fcn.00405660
add esp, 8
push 0x100
call fcn.004cf0e5
mov eax, dword [esp + 0x124]
cmp dword [esp + 0x138], esi
jae 0x42074c
lea eax, [esp + 0x124]
push 1
push eax
lea edx, [esp + 0x7c]
push edx
call fcn.00408f60
lea eax, [esp + 0x174]
push eax
mov byte [esp + 0x1f8], 8
call fcn.0040ce00
mov byte [esp + 0x1f4], 9
cmp dword [esp + 0xc8], ebx
je 0x420795
lea ecx, [esp + 0x174]
push ecx
lea ecx, [esp + 0x78]
call fcn.0040e450
jmp 0x420946
lea esi, [esp + 0x104]
call fcn.004202e0
push eax
lea edx, [esp + 0x178]
push edx
mov byte [esp + 0x1fc], 0xa
call fcn.0040e5e0
mov byte [esp + 0x1f4], 9
cmp dword [esp + 0x11c], edi
jb 0x4207d8
mov eax, dword [esp + 0x108]
push eax
call fcn.004f0cfc
add esp, 4
call fcn.004cefff
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
push 0x100
call eax
test al, al
je 0x4208b7
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x108]
push edx
call fcn.004022c0
add esp, 8
push 0x534dc4
push ecx
push eax
push ecx
push str.Cant_open_file:
push ecx
push 0x534dd4
push ecx
push 0x2c
push ecx
push 0x534dd8
push ecx
push str.LoadLocale
push ecx
push 0x534dc0
push ecx
mov byte [esp + 0x234], 0xb
call fcn.004cf0d6
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00402b90
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405890
add esp, 0xc
push eax
call fcn.00405660
add esp, 8
mov byte [esp + 0x1f4], 9
cmp dword [esp + 0x11c], edi
jb 0x4208ad
mov eax, dword [esp + 0x108]
push eax
call fcn.004f0cfc
add esp, 4
push 0x100
call fcn.004cf0e5
call fcn.004cefff
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
push 0x100
call eax
test al, al
je 0x420946
push 0x534dc4
push ecx
push str.Try_to_read_locale_from_resource.
push ecx
push 0x534dd4
push ecx
push 0x2d
push ecx
push 0x534dd8
push ecx
push str.LoadLocale
push ecx
push 0x534dc0
push ecx
call fcn.004cf0d6
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00402b90
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 8
push 0x100
call fcn.004cf0e5
call fcn.004cefff
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
push 0x100
call eax
test al, al
je 0x4209eb
push 0x534dc4
push ecx
lea ecx, [esp + 0x1a8]
push ecx
push ecx
push str.root:
push ecx
push 0x534dd4
push ecx
push 0x31
push ecx
push 0x534dd8
push ecx
push str.LoadLocale
push ecx
push 0x534dc0
push ecx
call fcn.004cf0d6
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00402b90
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405890
add esp, 0xc
push eax
call fcn.00405660
add esp, 8
push 0x100
call fcn.004cf0e5
mov ebp, dword [esp + 0x188]
mov edi, dword [ebp]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
cmp edi, ebp
je 0x420cca
mov eax, dword [edi + 8]
mov esi, dword [eax + 0x40]
add eax, 0x2c
mov ecx, esi
cmp ecx, esi
jae 0x420a14
mov ecx, esi
cmp esi, 6
jb 0x420a20
mov ecx, 6
cmp dword [eax + 0x18], 0x10
jb 0x420a2b
mov eax, dword [eax + 4]
jmp 0x420a2e
add eax, 4
push ecx
push str.locale
push eax
call fcn.004010a0
add esp, 0xc
cmp eax, ebx
jne 0x420b2e
cmp esi, 6
jb 0x420b2e
xor eax, eax
cmp esi, 6
setne al
cmp eax, ebx
jne 0x420b2e
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 4
mov esi, 0xf
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push str.lang
mov byte [ecx + 4], bl
call fcn.00403c20
mov edx, dword [edi + 8]
push edx
lea ecx, [esp + 0x124]
call fcn.004ce213
add esp, 0x20
mov byte [esp + 0x1f4], 0xc
mov eax, dword [esp + 0x204]
mov ebp, 0x10
cmp dword [esp + 0x218], ebp
jae 0x420ab8
lea eax, [esp + 0x204]
mov ecx, dword [esp + 0x214]
mov edx, dword [esp + 0x118]
push ecx
push eax
push edx
push ebx
lea ecx, [esp + 0x114]
call fcn.00402f20
test eax, eax
jne 0x420ae1
mov eax, dword [edi + 8]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x118], ebx
jne 0x420af1
mov ecx, dword [edi + 8]
mov dword [esp + 0x34], ecx
mov byte [esp + 0x1f4], 9
cmp dword [esp + 0x11c], ebp
jb 0x420b12
mov edx, dword [esp + 0x108]
push edx
call fcn.004f0cfc
add esp, 4
mov ebp, dword [esp + 0x188]
mov dword [esp + 0x11c], esi
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
mov edi, dword [edi]
cmp edi, ebp
jne 0x420a05
mov esi, dword [esp + 0x28]
cmp esi, ebx
jne 0x420be3
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x420cca
mov dword [esp + 0x28], esi
call fcn.004cefff
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
push 0x100
call eax
test al, al
je 0x420be3
push 0x534dc4
push ecx
push str.Default_lang_in_use.
push ecx
push 0x534dd4
push ecx
push 0x42
push ecx
push 0x534dd8
push ecx
push str.LoadLocale
push ecx
push 0x534dc0
push ecx
call fcn.004cf0d6
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00402b90
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 8
push 0x100
call fcn.004cf0e5
mov eax, dword [esi + 0x14]
mov ebp, dword [eax]
cmp ebp, eax
je 0x4210a6
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 3
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x53975c
mov byte [ecx + 4], bl
call fcn.00403c20
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x178]
call fcn.004ce213
add esp, 0x20
mov byte [esp + 0x1f4], 0xd
cmp dword [esp + 0x234], 0x10
mov edx, dword [esp + 0x220]
jae 0x420c45
lea edx, [esp + 0x220]
mov esi, dword [esp + 0x16c]
mov edi, dword [esp + 0x230]
mov ecx, esi
cmp esi, edi
jb 0x420c5b
mov ecx, edi
cmp dword [esp + 0x170], 0x10
mov eax, dword [esp + 0x15c]
jae 0x420c73
lea eax, [esp + 0x15c]
push ecx
push edx
push eax
call fcn.004010a0
add esp, 0xc
cmp eax, ebx
jne 0x420c91
cmp esi, edi
jb 0x420c91
xor eax, eax
cmp esi, edi
setne al
cmp eax, ebx
je 0x420c99
cmp esi, ebx
jne 0x421074
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x40]
add eax, 0x2c
mov ecx, esi
cmp ecx, esi
jae 0x420ca8
mov ecx, esi
cmp esi, 5
jb 0x420cb4
mov ecx, 5
mov edi, 0x10
cmp dword [eax + 0x18], edi
jb 0x420ddd
mov eax, dword [eax + 4]
jmp 0x420de0
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.00421310
lea ecx, [esp + 0x174]
mov dword [esp + 0x30], 1
mov byte [esp + 0x1f4], 8
call fcn.0040dcd0
lea ecx, [esp + 0xcc]
mov byte [esp + 0x1f4], 6
call fcn.00409040
lea eax, [esp + 0xcc]
push eax
mov dword [esp + 0xd0], vtable.std::ios_base.0
call fcn.004e1d2a
add esp, 4
cmp dword [esp + 0x138], 8
jb 0x420d3e
mov ecx, dword [esp + 0x124]
push ecx
call fcn.004f0cfc
add esp, 4
mov byte [esp + 0x1f4], 2
mov eax, dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0x138], 7
mov dword [esp + 0x134], ebx
mov word [esp + 0x124], dx
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x20]
lea esi, [esp + 0x24]
call fcn.004217d0
mov eax, dword [esp + 0x20]
push eax
call fcn.004f0cfc
mov esi, 0x10
add esp, 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x218], esi
jb 0x420daa
mov ecx, dword [esp + 0x204]
push ecx
call fcn.004f0cfc
add esp, 4
mov dword [esp + 0x218], 0xf
mov dword [esp + 0x214], ebx
mov byte [esp + 0x204], bl
cmp dword [esp + 0x234], esi
jb 0x4211e6
mov edx, dword [esp + 0x220]
push edx
jmp 0x4211de
add eax, 4
push ecx
push str.sizes
push eax
call fcn.004010a0
add esp, 0xc
cmp eax, ebx
jne 0x420ee5
cmp esi, 5
jb 0x420ee5
xor eax, eax
cmp esi, 5
setne al
cmp eax, ebx
jne 0x420ee5
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 5
mov esi, 0xf
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push str.width
mov byte [ecx + 4], bl
call fcn.00403c20
mov edx, dword [ebp + 8]
push edx
lea ecx, [esp + 0x15c]
call fcn.004ce213
add esp, 0x20
cmp dword [eax + 0x18], edi
jb 0x420e50
mov eax, dword [eax + 4]
jmp 0x420e53
add eax, 4
push eax
call fcn.004f12a1
mov edi, dword [esp + 0x3c]
add esp, 4
cmp dword [esp + 0x154], 0x10
mov dword [edi], eax
jb 0x420e7c
mov eax, dword [esp + 0x140]
push eax
call fcn.004f0cfc
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push str.height
mov byte [ecx + 4], bl
call fcn.00403c20
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [esp + 0x15c]
call fcn.004ce213
mov esi, 0x10
add esp, 0x20
cmp dword [eax + 0x18], esi
jb 0x420ebc
mov eax, dword [eax + 4]
jmp 0x420ebf
add eax, 4
push eax
call fcn.004f12a1
add esp, 4
mov dword [edi + 4], eax
cmp dword [esp + 0x154], esi
jb 0x421074
mov edx, dword [esp + 0x140]
push edx
jmp 0x42106c
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x40]
add eax, 0x2c
mov ecx, esi
cmp ecx, esi
jae 0x420ef4
mov ecx, esi
cmp esi, 4
jb 0x420f00
mov ecx, 4
cmp dword [eax + 0x18], edi
jb 0x420f0a
mov eax, dword [eax + 4]
jmp 0x420f0d
add eax, 4
push ecx
push str.item
push eax
call fcn.004010a0
add esp, 0xc
cmp eax, ebx
jne 0x421074
cmp esi, 4
jb 0x421074
xor eax, eax
cmp esi, 4
setne al
cmp eax, ebx
jne 0x421074
sub esp, 0x1c
mov dword [esp + 0x34], esp
mov edi, esp
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x50], esp
push 2
mov esi, 0xf
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push 0x538604
mov byte [ecx + 4], bl
call fcn.00403c20
mov eax, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.004ce213
add esp, 0x20
lea ecx, [esp + 0x158]
call fcn.004cc1f2
add esp, 0x1c
mov byte [esp + 0x1f4], 0xe
cmp dword [esp + 0x150], ebx
jne 0x420ff0
cmp dword [esp + 0x154], 8
jb 0x420fb1
mov ecx, dword [esp + 0x140]
push ecx
call fcn.004f0cfc
add esp, 4
xor edx, edx
mov byte [esp + 0x1f4], 9
cmp dword [esp + 0x170], 0x10
mov dword [esp + 0x154], 7
mov dword [esp + 0x150], ebx
mov word [esp + 0x140], dx
jb 0x421096
mov eax, dword [esp + 0x15c]
push eax
jmp 0x42108e
mov eax, dword [ebp + 8]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
add eax, 0x48
push ebx
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402e40
lea ecx, [esp + 0x74]
call fcn.004cc1f2
add esp, 0x1c
mov esi, eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x140]
mov byte [esp + 0x1f8], 0xf
call fcn.00421220
push 0xffffffffffffffff
push ebx
push esi
mov ecx, eax
call fcn.00403000
mov esi, 8
cmp dword [esp + 0x70], esi
jb 0x42105b
mov edx, dword [esp + 0x5c]
push edx
call fcn.004f0cfc
add esp, 4
cmp dword [esp + 0x154], esi
jb 0x421074
mov eax, dword [esp + 0x140]
push eax
call fcn.004f0cfc
add esp, 4
mov byte [esp + 0x1f4], 9
cmp dword [esp + 0x170], 0x10
jb 0x421096
mov ecx, dword [esp + 0x15c]
push ecx
call fcn.004f0cfc
add esp, 4
mov ebp, dword [ebp]
mov edx, dword [esp + 0x28]
cmp ebp, dword [edx + 0x14]
jne 0x420bf0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.00421310
lea ecx, [esp + 0x174]
mov dword [esp + 0x30], 1
mov byte [esp + 0x1f4], 8
call fcn.0040dcd0
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 4]
lea edx, [esp + 0xcc]
mov dword [esp + 0x18], edx
mov dword [esp + ecx + 0x74], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1f4], 0x10
call fcn.004090b0
mov byte [esp + 0x1f4], 6
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 4]
lea ecx, [esp + 0xcc]
mov dword [esp + eax + 0x74], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push ecx
mov dword [esp + 0xd0], vtable.std::ios_base.0
call fcn.004e1d2a
add esp, 4
cmp dword [esp + 0x138], 8
jb 0x421148
mov edx, dword [esp + 0x124]
push edx
call fcn.004f0cfc
add esp, 4
xor eax, eax
mov word [esp + 0x124], ax
mov byte [esp + 0x1f4], 2
mov eax, dword [esp + 0x20]
mov dword [esp + 0x138], 7
mov dword [esp + 0x134], ebx
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x20]
lea esi, [esp + 0x24]
call fcn.004217d0
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004f0cfc
mov esi, 0x10
add esp, 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x218], esi
jb 0x4211b4
mov edx, dword [esp + 0x204]
push edx
call fcn.004f0cfc
add esp, 4
mov dword [esp + 0x218], 0xf
mov dword [esp + 0x214], ebx
mov byte [esp + 0x204], bl
cmp dword [esp + 0x234], esi
jb 0x4211e6
mov eax, dword [esp + 0x220]
push eax
call fcn.004f0cfc
add esp, 4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.004f070d
add esp, 0x1e4
ret