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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b01e8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [esp + 0x14]
call fcn.0040e080
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
xor ebx, ebx
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x70], ebx
jge 0x51e75d
push 0x104
lea ecx, [esp + 0x14]
call fcn.0040c000
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 0x14]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004e662e
add esp, 8
cmp eax, ebx
jl 0x51ebfa
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx - 8]
jg 0x51ebfa
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x10]
xor edx, edx
mov word [ecx + eax*2], dx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov dword [esp + 0x20], eax
call fcn.004a581f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x51e7c4
push 0x80004005
call fcn.0040b390
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x70], 1
call fcn.004a581f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x51e7f3
push 0x80004005
call fcn.0040b390
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
mov byte [esp + 0x70], 2
jge 0x51e82e
push 0x100
lea ecx, [esp + 0x1c]
call fcn.0040c000
mov esi, dword [esp + 0x18]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x51e854
push 0x104
lea ecx, [esp + 0x18]
call fcn.0040c000
mov edi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x14]
push esi
push edi
push ebx
push ebx
push ecx
call fcn.0059887d
mov eax, dword [edi - 8]
push eax
push edi
call fcn.004e662e
add esp, 0x1c
cmp eax, ebx
jl 0x51ebfa
cmp eax, dword [edi - 8]
jg 0x51ebfa
mov dword [edi - 0xc], eax
xor edx, edx
mov word [edi + eax*2], dx
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004e662e
add esp, 8
cmp eax, ebx
jl 0x51ebfa
cmp eax, dword [esi - 8]
jg 0x51ebfa
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov ecx, dword [esp + 0x1c]
push esi
push edi
add ecx, 0xd0
push edx
mov dword [esp + 0x28], ecx
call fcn.00552a20
mov edi, eax
cmp edi, ebx
je 0x51e905
push edi
lea ecx, [esp + 0x30]
call fcn.00552e70
mov ecx, dword [ebp + 0x14]
mov eax, dword [edi]
mov edx, dword [ebp + 0x10]
mov eax, dword [eax + 8]
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x78], 3
call eax
test eax, eax
jne 0x51e989
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 2
call fcn.00552e90
lea eax, [esi - 0x10]
mov byte [esp + 0x70], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e926
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x70], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e94a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x70], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51e972
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 0x18]
push eax
push 0x5db364
mov ecx, edi
call edx
test eax, eax
je 0x51e8f7
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebx
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x28]
push eax
call edx
cmp eax, ebx
je 0x51e8f7
lea eax, [esp + 0x24]
push eax
call fcn.00529790
mov ecx, dword [esp + 0x20]
add esp, 4
push edi
mov dword [esp + 0x24], eax
call fcn.00552e30
mov esi, dword [eax]
mov edx, dword [edi]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x14]
mov ecx, edi
add esi, 0x10
call eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi]
push eax
call edx
cmp dword [esp + 0x20], ebx
je 0x51ebaa
mov edi, 0xc
jmp 0x51ea10
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
push 0x5e95a9
lea ecx, [esp + 0x38]
mov byte [esp + 0x74], 4
call fcn.0051c3c0
push 0x5e95a9
lea ecx, [esp + 0x48]
mov dword [esp + 0x44], ebx
call fcn.0051c3c0
push 0x5e95a9
lea ecx, [esp + 0x4c]
call fcn.0051c3c0
push 0x5e95a9
lea ecx, [esp + 0x50]
call fcn.0051c3c0
push 0x5e95a9
lea ecx, [esp + 0x54]
call fcn.0051c3c0
push 0x5c0e8c
lea ecx, [esp + 0x58]
call fcn.0051c480
mov ecx, dword [ebp + 0x14]
mov eax, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ebx
call fcn.0051c480
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x28]
push 0x5db360
push eax
call fcn.005296e0
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x34]
push str.code
push edx
call fcn.00529580
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x40]
push str.file
push ecx
call fcn.005296e0
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x4c]
push str.name
push eax
call fcn.005296e0
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x58]
push str.lang_name
push edx
call fcn.005296e0
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x64]
push str.font_name
push ecx
call fcn.005296e0
add esp, 0x48
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x28]
push str.font_px
push eax
call fcn.00529580
add esp, 0xc
cmp dword [esp + 0x40], ebx
je 0x51eb85
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x51eb85
mov eax, dword [eax]
cmp eax, ebx
je 0x51eb85
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
cmp eax, ebx
jbe 0x51eb85
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x51eb85
mov eax, dword [eax]
cmp eax, ebx
je 0x51eb85
push eax
call esi
cmp eax, ebx
jbe 0x51eb85
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0051e250
lea edx, [esp + 0x24]
push edx
call fcn.005297d0
add esp, 4
lea ecx, [esp + 0x34]
mov esi, eax
mov byte [esp + 0x70], 3
call fcn.0051c970
cmp esi, ebx
jne 0x51ea10
lea eax, [esp + 0x24]
push eax
call fcn.00529810
add esp, 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 2
call fcn.00552e90
lea ecx, [esp + 0x18]
call fcn.0040c150
lea ecx, [esp + 0x14]
call fcn.0040c150
lea ecx, [esp + 0x10]
call fcn.0040c150
mov eax, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.0040b390
int3