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

Disassembly:
push 0xffffffffffffffff
push 0x5ce22f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
push ebx
push ebp
mov dword [esp + 0x24], ecx
push esi
push edi
lea ecx, [esp + 0x48]
call fcn.005946cf
mov eax, dword [esp + 0x100]
xor ebx, ebx
push ebx
push ebx
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x104], ebx
call fcn.005947e1
test eax, eax
jne 0x512877
lea ecx, [esp + 0x48]
mov dword [esp + 0xf8], 0xffffffff
call fcn.00594724
xor eax, eax
jmp 0x512f30
lea ecx, [esp + 0x48]
call fcn.00594adb
mov ebp, eax
mov dword [esp + 0x30], ebp
lea ecx, [ebp + 1]
push ecx
call fcn.0058ecf8
add esp, 4
mov esi, eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x24], esi
push ebp
push esi
call fcn.005948fe
lea ecx, [esp + 0x48]
call fcn.005949fc
cmp ebx, ebp
mov byte [esi + ebp], 0
mov byte [esp + 0x1b], 1
jge 0x512f0e
cmp byte [ebx + esi], 0x22
je 0x5128c8
inc ebx
cmp ebx, ebp
jl 0x5128bd
lea ecx, [esp + 0x58]
inc ebx
call fcn.0050bc50
cmp ebx, ebp
mov byte [esp + 0xf8], 1
jge 0x5128f4
mov al, byte [ebx + esi]
cmp al, 0x22
je 0x5128f4
push eax
lea ecx, [esp + 0x5c]
call fcn.0050c250
inc ebx
cmp ebx, ebp
jl 0x5128de
lea ecx, [esp + 0x58]
call fcn.0050ca00
lea ecx, [esp + 0x58]
call fcn.0050cb70
lea ecx, [esp + 0x58]
call fcn.0050cbd0
inc ebx
cmp ebx, ebp
mov dword [esp + 0x14], ebx
jge 0x51292c
mov al, byte [ebx + esi]
cmp al, 0x3d
je 0x512923
cmp al, 0x20
jne 0x512928
inc ebx
cmp ebx, ebp
jl 0x512918
mov dword [esp + 0x14], ebx
mov edx, dword [0x639698]
mov dword [esp + 0x1c], edx
cmp ebx, ebp
mov byte [esp + 0xf8], 2
jge 0x512960
mov al, byte [ebx + esi]
cmp al, 0xd
je 0x51295c
cmp al, 0xa
je 0x51295c
push eax
lea ecx, [esp + 0x20]
call fcn.00593ade
inc ebx
cmp ebx, ebp
jl 0x512942
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x1c]
call fcn.0058ae9c
lea ecx, [esp + 0x58]
call fcn.0050c980
test eax, eax
jne 0x512ee4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x512ee4
mov eax, dword [0x7193dc]
test eax, eax
jne 0x5129ed
push 0x14
call fcn.0058ecf8
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
je 0x5129d0
mov dword [esi], 0x5e34dc
lea edx, [esp + 0x2b]
lea eax, [esp + 0x13]
push edx
push 0
lea ecx, [esi + 4]
push eax
mov byte [esp + 0x104], 4
call fcn.00513700
mov dword [esi], 0x5e34d8
jmp 0x5129d2
xor esi, esi
push 0x4aa5e0
mov byte [esp + 0xfc], 2
mov dword [0x7193dc], esi
call fcn.005732b4
add esp, 4
mov edi, dword [0x7193dc]
lea ecx, [esp + 0x58]
call fcn.0050cd90
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x80], cl
lea ecx, [esp + 0x80]
mov esi, eax
call fcn.004aa6b0
push esi
call fcn.005745c3
add esp, 4
lea ecx, [esp + 0x7c]
push eax
push esi
call fcn.004aa960
lea edx, [esp + 0x20]
lea eax, [esp + 0x7c]
push edx
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x100], 5
mov dword [esp + 0x28], 0
call fcn.005135b0
lea ecx, [esp + 0xd4]
push eax
push ecx
lea ecx, [edi + 4]
mov byte [esp + 0x100], 6
call fcn.005134b0
mov esi, dword [eax]
push 1
lea ecx, [esp + 0xe0]
mov byte [esp + 0xfc], 5
call fcn.004aa6b0
mov esi, dword [esi + 0x1c]
push 1
lea ecx, [esp + 0x80]
mov byte [esp + 0xfc], 2
call fcn.004aa6b0
test esi, esi
je 0x512af7
mov edx, dword [0x639698]
mov dword [esp + 0x14], edx
sub esp, 0x1c
mov ecx, 7
lea esi, [esp + 0x74]
mov edi, esp
lea eax, [esp + 0x30]
push str.icons.cfg_contains_some_equal_words._Word___s__is_ignored.
rep movsd dword es:[edi], dword [esi]
push eax
mov byte [esp + 0x11c], 7
call fcn.0058aded
mov ecx, dword [esp + 0x38]
add esp, 0x24
push 0
push 0
push ecx
call fcn.0059bd71
lea ecx, [esp + 0x14]
mov byte [esp + 0xf8], 2
call fcn.005936db
jmp 0x512ee0
call fcn.005aa82c
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x1c]
push 0x10
push 0
mov eax, dword [eax + 0x68]
push 0
push 1
push edx
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
mov esi, eax
test esi, esi
je 0x512b93
push 0x60
call fcn.0058ecf8
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0xf8], 8
je 0x512b41
push 2
mov ecx, eax
call fcn.005120d0
jmp 0x512b43
xor eax, eax
lea ecx, [esp + 0xa8]
mov byte [esp + 0xf8], 2
push ecx
push esi
mov ebp, eax
mov dword [eax + 0x48], esi
call dword [sym.imp.USER32.dll_GetIconInfo]
mov eax, dword [esp + 0xb8]
lea edx, [esp + 0xbc]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0xb8]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ecx
call esi
mov edx, dword [esp + 0xb4]
push edx
call esi
jmp 0x512bef
mov eax, dword [esp + 0x1c]
push eax
call fcn.004e0730
mov esi, eax
add esp, 4
test esi, esi
je 0x512f4b
push 0x60
call fcn.0058ecf8
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0xf8], 9
je 0x512bcf
push 3
mov ecx, eax
call fcn.005120d0
jmp 0x512bd1
xor eax, eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0xf8], 2
push ecx
push 0x18
push esi
mov ebp, eax
mov dword [eax + 0x48], esi
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esp + 0xc0]
lea esi, [ebp + 4]
mov dword [ebp + 0x54], edx
mov eax, dword [esp + 0xc4]
mov dword [ebp + 0x58], eax
mov al, byte [ebp + 0x24]
test al, al
mov dword [ebp + 0x20], 0xffffffff
je 0x512c34
push 0x623654
mov ecx, esi
call fcn.0050bdd0
push 0x1f
push 0
mov ecx, esi
call fcn.0050c9d0
mov cx, word [ebp + 0x20]
push ecx
push 1
jmp 0x512c4c
push 0x623650
mov ecx, esi
call fcn.0050bdd0
mov dx, word [ebp + 0x20]
sub dx, 0x2000
push edx
push 0
mov ecx, esi
call fcn.0050c9d0
mov eax, dword [0x7193d4]
test eax, eax
jne 0x512cbb
push 0x3c
call fcn.0058ecf8
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
je 0x512c9e
mov dword [esi], 0x5e1d8c
lea ecx, [esi + 4]
mov byte [esp + 0xf8], 0xc
call fcn.00512220
lea ecx, [esi + 0x20]
mov byte [esp + 0xf8], 0xd
call fcn.00512220
mov dword [esi], 0x5e1d88
jmp 0x512ca0
xor esi, esi
push 0x45c160
mov byte [esp + 0xfc], 2
mov dword [0x7193d4], esi
call fcn.005732b4
add esp, 4
mov ecx, dword [0x7193d4]
push ebp
call fcn.00512fc0
mov eax, dword [0x7193dc]
test eax, eax
jne 0x512dbf
push 0x14
call fcn.0058ecf8
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
je 0x512da2
mov dword [esi], 0x5e34dc
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x13]
push 0x24
mov byte [esp + 0xfc], 0xf
mov byte [esi + 4], al
mov byte [esi + 5], cl
mov byte [esi + 0xc], 0
call fcn.0058ecf8
mov edi, eax
add esp, 4
lea ecx, [esp + 0x44]
mov ebx, edi
mov dword [edi + 4], 0
mov dword [edi + 0x20], 1
call fcn.00586920
mov eax, dword [0x640008]
test eax, eax
jne 0x512d4d
xor ebx, ebx
mov dword [0x640008], edi
mov dword [edi], ebx
mov edx, dword [0x640008]
mov dword [edx + 8], ebx
mov ecx, dword [0x640004]
inc ecx
mov dword [0x640004], ecx
lea ecx, [esp + 0x44]
call fcn.005869bc
xor edi, edi
cmp ebx, edi
je 0x512d72
push ebx
call fcn.0058ed21
add esp, 4
mov ebx, dword [0x640008]
push 0x24
call fcn.0058ecf8
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x18]
mov dword [eax + 0x20], edi
mov dword [esi + 8], eax
mov dword [esi + 0x10], edi
mov dword [eax], eax
mov eax, dword [esi + 8]
add esp, 4
mov dword [eax + 8], eax
mov dword [esi], 0x5e34d8
jmp 0x512da4
xor esi, esi
push 0x4aa5e0
mov byte [esp + 0xfc], 2
mov dword [0x7193dc], esi
call fcn.005732b4
add esp, 4
mov edi, dword [0x7193dc]
lea ecx, [esp + 0x58]
call fcn.0050cd90
mov esi, eax
mov al, byte [esp + 0x13]
mov byte [esp + 0x34], al
xor eax, eax
push esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.005745c3
add esp, 4
lea ecx, [esp + 0x34]
push eax
push esi
call fcn.004aa960
lea ecx, [esp + 0x34]
mov byte [esp + 0xf8], 0x10
push ecx
lea ecx, [esp + 0x98]
call fcn.00513730
mov dword [esp + 0xa4], 0
lea edx, [esp + 0x94]
lea eax, [esp + 0x74]
push edx
push eax
lea ecx, [edi + 4]
mov byte [esp + 0x100], 0x11
call fcn.004aa700
lea ecx, [esp + 0x78]
lea edx, [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x94]
call fcn.004aaa10
mov esi, dword [esp + 0x8c]
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0xfc], 0x10
call fcn.004aa6b0
mov dword [esi + 0x1c], ebp
mov eax, dword [esp + 0x38]
xor esi, esi
mov byte [esp + 0xf8], 2
cmp eax, esi
je 0x512ea2
mov cl, byte [eax - 1]
test cl, cl
je 0x512e96
cmp cl, 0xff
je 0x512e96
dec cl
mov byte [eax - 1], cl
jmp 0x512ea2
add eax, 0xfffffffe
push eax
call fcn.0058ed21
add esp, 4
lea ecx, [esp + 0x58]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call fcn.004cd910
mov ecx, dword [esp + 0x2c]
cmp eax, dword [ecx + 0x14]
jle 0x512ec3
mov dword [ecx + 0x14], eax
mov dl, byte [esp + 0x1b]
test dl, dl
jne 0x512ed4
cmp eax, dword [ecx + 0x18]
jge 0x512edc
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 0x18], eax
mov byte [esp + 0x1b], 0
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
mov byte [esp + 0xf8], 1
call fcn.005936db
lea ecx, [esp + 0x58]
mov byte [esp + 0xf8], 0
call fcn.0050bd60
cmp ebx, ebp
jl 0x5128bd
push esi
call fcn.0058ed21
add esp, 4
lea ecx, [esp + 0x48]
mov dword [esp + 0xf8], 0xffffffff
call fcn.00594724
mov eax, 1
mov ecx, dword [esp + 0xf0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xec
ret 4
mov eax, dword [0x639698]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push str.Can_not_load__s_file.
push edx
mov byte [esp + 0x104], 0xa
call fcn.0058aded
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push 0
push eax
call fcn.0059bd71
lea ecx, [esp + 0x14]
mov byte [esp + 0xf8], 2
call fcn.005936db
lea ecx, [esp + 0x1c]
mov byte [esp + 0xf8], 1
call fcn.005936db
lea ecx, [esp + 0x58]
mov byte [esp + 0xf8], 0
call fcn.0050bd60
mov esi, dword [esp + 0x24]
jmp 0x512f06