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

Disassembly:
push 0xffffffffffffffff
push 0x5de985
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x1ac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x1c4]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1d4]
mov ebp, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], ebx
call fcn.0045ed80
mov dword [esp + 0x20], eax
cmp eax, 0xfffffffe
jne 0x522399
or eax, 0xffffffff
jmp 0x522cdc
cmp eax, 0xffffffff
jne 0x522cdc
cmp byte [esp + 0x1d8], bl
je 0x522cdc
lea eax, [ebp + 0x2c]
push eax
lea ecx, [esp + 0x1a0]
call fcn.00402b70
mov dword [esp + 0x1cc], ebx
cmp dword [esp + 0x1ac], ebx
jne 0x5224a0
push str.:_unknown_charset
lea ecx, [esp + 0x8c]
call fcn.00402bb0
mov esi, 7
xor ecx, ecx
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], cx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
xor edx, edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], dx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov ecx, dword [0x695ad8]
lea eax, [esp + 0xac]
push eax
mov byte [esp + 0x1d0], 3
call fcn.00443300
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x1a8]
mov byte [esp + 0x1d8], 4
call fcn.004023f0
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x90]
push eax
call fcn.00401680
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x1a8]
call fcn.004023f0
lea ecx, [esp + 0xac]
call fcn.00405eb0
lea ecx, [esp + 0x28]
call fcn.00405eb0
lea ecx, [esp + 0x4c]
call fcn.00405eb0
lea ecx, [esp + 0x88]
call fcn.00405eb0
jmp 0x5224a5
mov esi, 7
xor ecx, ecx
mov dword [esp + 0x134], esi
mov dword [esp + 0x130], ebx
mov word [esp + 0x120], cx
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x140], ebx
push str.The_charset__s_is_unknown._You_may_select_nanother_charset_to_replace_it_with_or_choose_n_Cancel__if_it_cannot_be_replaced
lea ecx, [esp + 0x8c]
mov byte [esp + 0x1d0], 5
call fcn.00402bb0
xor edx, edx
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], dx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
xor eax, eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], ax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov byte [esp + 0x1cc], 8
call fcn.00425e70
cmp eax, ebx
je 0x522540
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x90]
push ecx
mov ecx, eax
call fcn.00429320
cmp eax, ebx
jne 0x522550
lea edx, [esp + 0x88]
push edx
call fcn.004292f0
add esp, 4
push eax
lea ecx, [esp + 0x78]
call fcn.00406160
sub esp, 0x24
mov ecx, esp
mov dword [esp + 0x3c], esp
push edi
mov byte [esp + 0x1f4], 9
call fcn.00402b70
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x148]
call fcn.00413990
lea ecx, [esp + 0x74]
mov byte [esp + 0x1cc], 8
call fcn.004020c0
lea ecx, [esp + 0x28]
call fcn.00405eb0
lea ecx, [esp + 0x4c]
call fcn.00405eb0
lea ecx, [esp + 0x88]
mov byte [esp + 0x1cc], 5
call fcn.00405eb0
call fcn.0045da10
mov esi, eax
xor ecx, ecx
mov edx, 0x24
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0058229a
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x1cc], 0xa
cmp eax, ebx
je 0x522616
push fcn.00405eb0
push fcn.00401410
push esi
lea edi, [eax + 4]
push 0x24
push edi
mov dword [eax], esi
call fcn.00585d2b
mov dword [esp + 0x18], edi
jmp 0x52261a
mov dword [esp + 0x18], ebx
xor edi, edi
mov byte [esp + 0x1cc], 5
cmp esi, ebx
jbe 0x52269c
mov ebp, dword [esp + 0x18]
lea esp, [esp]
push edi
call fcn.0045da20
push eax
lea ecx, [esp + 0x90]
push ecx
call fcn.0045e0c0
add esp, 0xc
mov byte [esp + 0x1cc], 0xb
cmp ebp, eax
je 0x52265e
push 0xffffffffffffffff
push ebx
push eax
mov ecx, ebp
call fcn.00402610
mov edx, dword [esp + 0xa4]
push edx
mov byte [esp + 0x1d0], 5
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x9c], 8
jb 0x522690
mov eax, dword [esp + 0x88]
push eax
call fcn.00584768
add esp, 4
inc edi
add ebp, 0x24
cmp edi, esi
jb 0x522630
mov ebp, dword [esp + 0x70]
mov eax, dword [ebp + 0x50]
cmp eax, ebx
jne 0x5226b3
mov ecx, dword [0x695ad8]
mov edx, dword [ecx]
mov eax, dword [edx + 0xdc]
call eax
mov ecx, dword [esp + 0x18]
push ebx
push 0x96
push 0xc8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push ecx
push esi
lea edx, [esp + 0x1c0]
push edx
lea eax, [esp + 0x148]
push eax
call fcn.0055fd90
mov edi, eax
mov eax, dword [esp + 0x44]
add esp, 0x2c
cmp eax, ebx
je 0x52270a
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.00405eb0
push ecx
push 0x24
push eax
call fcn.00585333
push esi
call fcn.00585c9e
add esp, 4
cmp edi, 0xffffffff
je 0x52271c
push edi
call fcn.0045da20
add esp, 4
mov dword [esp + 0x20], eax
push 8
xor edx, edx
mov esi, 7
push str.Charsets
lea ecx, [esp + 0x104]
mov dword [esp + 0x118], esi
mov dword [esp + 0x114], ebx
mov word [esp + 0x104], dx
call fcn.00402710
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], ebx
xor eax, eax
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], ebx
mov word [esp + 0xd4], ax
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], ebx
lea ecx, [esp + 0xd4]
push ecx
lea edx, [esp + 0x100]
push edx
mov ecx, ebp
mov byte [esp + 0x1d4], 0xd
mov dword [esp + 0xd8], ebp
call fcn.0045eb80
mov byte [esp + 0xf8], al
mov eax, dword [esp + 0x118]
push eax
mov byte [esp + 0x1d0], 0xf
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x110], 8
jb 0x5227df
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.00584768
add esp, 4
xor edx, edx
mov dword [esp + 0x110], esi
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], dx
cmp byte [esp + 0xf8], bl
je 0x522c03
mov ecx, ebp
call fcn.0045dfb0
mov ecx, 0xfffffffe
cmp edi, 0xffffffff
je 0x522819
mov ecx, dword [esp + 0x20]
mov edx, dword [eax]
mov edx, dword [edx + 0x70]
push ecx
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, eax
call edx
test al, al
jne 0x522c03
cmp al, bl
jne 0x522890
lea eax, [esp + 0x88]
push 0x5fcf00
push eax
call fcn.00423280
add esp, 8
mov esi, eax
or dword [esp + 0x1c], 1
mov byte [esp + 0x1cc], 0x10
cmp dword [0x695aa8], ebx
je 0x522874
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x695aa8]
je 0x522874
call fcn.004443b0
jmp 0x522879
mov al, byte [0x68a580]
cmp al, bl
je 0x522890
push esi
call fcn.00445fa0
add esp, 4
mov byte [esp + 0x17], 1
cmp eax, 1
jae 0x522894
mov byte [esp + 0x17], bl
test byte [esp + 0x1c], 1
mov dword [esp + 0x1cc], 0xf
je 0x5228d5
mov ecx, dword [esp + 0xa4]
and dword [esp + 0x1c], 0xfffffffe
push ecx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x9c], 8
jb 0x5228d5
mov edx, dword [esp + 0x88]
push edx
call fcn.00584768
add esp, 4
cmp byte [esp + 0x17], bl
je 0x522bfe
push str.Failed_to_remember_the_encoding_for_the_charset__s.
lea ecx, [esp + 0x8c]
call fcn.00402bb0
mov eax, 7
xor ecx, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], cx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
xor edx, edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], dx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x1cc], 0x13
call fcn.00425e70
cmp eax, ebx
je 0x522951
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x90]
push ecx
mov ecx, eax
call fcn.00429320
cmp eax, ebx
jne 0x522961
lea edx, [esp + 0x88]
push edx
call fcn.004292f0
add esp, 4
mov esi, eax
call fcn.00420510
mov dword [esp + 0x74], eax
mov byte [esp + 0x1cc], 0x14
call fcn.00420510
mov dword [esp + 0x78], eax
mov byte [esp + 0x1cc], 0x15
call fcn.00420510
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], ebx
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push ebx
xor eax, eax
push ecx
mov edi, 7
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1d8], 0x16
mov dword [esp + 0xcc], edi
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], ax
call fcn.00402610
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov byte [esp + 0x1cc], 0x17
mov dword [esp + 0x144], 1
mov dword [esp + 0x14c], str....._srccommon_fontmap.cpp
mov dword [esp + 0x154], str.wxFontMapper::CharsetToEncoding
mov dword [esp + 0x150], 0xf2
mov dword [esp + 0x158], 0x5fcf00
mov dword [esp + 0x15c], ebx
mov dword [esp + 0x160], ebx
mov dword [esp + 0x164], ebx
mov dword [esp + 0x168], ebx
call sub.KERNEL32.dll_GetCurrentThreadId
xor edx, edx
mov dword [esp + 0x16c], eax
mov dword [esp + 0x170], ebx
mov dword [esp + 0x188], edi
mov dword [esp + 0x184], ebx
mov word [esp + 0x174], dx
mov dword [esp + 0x190], ebx
mov dword [esp + 0x194], ebx
lea eax, [esp + 0xac]
lea ecx, [esp + 0x74]
mov byte [esp + 0x1cc], 0x1a
mov dword [esp + 0x18], eax
call fcn.0041de00
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0041d2a0
push eax
lea ecx, [esp + 0x148]
push esi
push ecx
call fcn.0040b680
mov edx, dword [esp + 0xd4]
push edx
call fcn.005844d1
mov ebp, 8
add esp, 0x10
cmp dword [esp + 0xc0], ebp
jb 0x522adb
mov eax, dword [esp + 0xac]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x190]
xor ecx, ecx
push edx
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], ebx
mov word [esp + 0xb0], cx
mov byte [esp + 0x1d0], 0x16
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x188], ebp
jb 0x522b24
mov eax, dword [esp + 0x174]
push eax
call fcn.00584768
add esp, 4
xor ecx, ecx
mov word [esp + 0x174], cx
mov ecx, dword [esp + 0x170]
mov dword [esp + 0x188], edi
mov dword [esp + 0x184], ebx
mov esi, ecx
cmp ecx, ebx
je 0x522b57
call fcn.0040c030
push esi
call fcn.00584768
add esp, 4
lea ecx, [esp + 0x74]
mov byte [esp + 0x1cc], 0x13
call fcn.004020c0
mov edx, dword [esp + 0x68]
push edx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x60], ebp
jb 0x522b88
mov eax, dword [esp + 0x4c]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x44]
xor ecx, ecx
push edx
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], cx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x3c], ebp
jb 0x522bb7
mov eax, dword [esp + 0x28]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0xa4]
xor ecx, ecx
push edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], cx
mov byte [esp + 0x1d0], 0xf
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x9c], ebp
jb 0x522bf7
mov eax, dword [esp + 0x88]
push eax
call fcn.00584768
add esp, 4
mov al, 1
jmp 0x522830
mov esi, 7
mov byte [esp + 0x1cc], 0x1b
cmp byte [esp + 0xf8], bl
je 0x522c28
lea ecx, [esp + 0xd4]
push ecx
mov ecx, dword [esp + 0xd4]
call fcn.0045e030
mov edx, dword [esp + 0xf0]
push edx
call fcn.005844d1
mov edi, 8
add esp, 4
cmp dword [esp + 0xe8], edi
jb 0x522c56
mov eax, dword [esp + 0xd4]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x13c]
xor ecx, ecx
push edx
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], ebx
mov word [esp + 0xd8], cx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x134], edi
jb 0x522c97
mov eax, dword [esp + 0x120]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x1b8]
xor ecx, ecx
push edx
mov dword [esp + 0x138], esi
mov dword [esp + 0x134], ebx
mov word [esp + 0x124], cx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x1b0], edi
jb 0x522cd8
mov eax, dword [esp + 0x19c]
push eax
call fcn.00584768
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1ac]
xor ecx, esp
call fcn.00585b7b
add esp, 0x1bc
ret 8