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

Disassembly:
sub esp, 0x124
mov eax, dword [esp + 0x128]
push ebx
push ebp
mov ebp, dword [esp + 0x138]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], 0
push ecx
mov dword [esp + 0x24], edi
mov dword [edi + 0x28], ebp
mov ecx, dword [eax - 0xc]
test ecx, ecx
mov esi, esp
jl 0x522b28
mov dword [esi], eax
mov eax, dword [esp + 0x13c]
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x522b4d
mov ecx, dword [0x546560]
mov dword [esi], ecx
mov eax, dword [esp + 0x13c]
test eax, eax
mov ebx, eax
je 0x522b44
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
push eax
mov ecx, esi
call fcn.00405870
mov ecx, edi
call fcn.00523270
mov eax, dword [esp + 0x144]
mov dword [edi + 0x24], 1
test eax, eax
jne 0x522b68
mov eax, ebp
mov ecx, dword [edi + 4]
lea ebp, [edi + 4]
test ecx, ecx
mov dword [edi + 0x2c], eax
jne 0x522bc1
push 0
push 0
push 0x6e
push eax
push 0x64
push 0x64
push 0
push 0
push 0x56000100
push 0
push 0x547390
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edx, dword [edi]
push edi
mov ecx, edi
mov ebx, eax
lea esi, [edi + 8]
call dword [edx + 4]
push eax
mov ecx, esi
call fcn.00411400
push esi
push 0xfffffffffffffffc
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
test eax, eax
je 0x522bc1
mov dword [edi + 0x1c], eax
mov dword [ebp], ebx
push 1
push 1
push 0x21
push 0
push 0
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [ebp]
push 0
push 0x430
push eax
call ebx
mov ecx, dword [ebp]
push 0
push 0
push 0x418
push ecx
call ebx
dec eax
mov dword [esp + 0x14], eax
js 0x522c14
mov edx, dword [ebp]
push 0
push eax
push 0x416
push edx
call ebx
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jns 0x522bfb
mov eax, dword [edi + 0x58]
add edi, 0x54
push eax
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call fcn.0043d590
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, edi
call fcn.00523930
mov eax, dword [esp + 0x13c]
push 0
push 0
push 0x1200
mov ecx, dword [eax]
push ecx
call ebx
mov esi, eax
mov dword [esp + 0x2c], esi
lea eax, [esi*4 + 4]
push eax
call fcn.00531ba5
mov dword [esp + 0x28], eax
lea eax, [esi*4 + 4]
push eax
call fcn.00531ba5
mov edx, dword [esp + 0x2c]
add esp, 8
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x13c]
push edx
push esi
mov ecx, dword [eax]
push 0x1211
push ecx
call ebx
mov edx, dword [0x546560]
xor eax, eax
test esi, esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x14], eax
jle 0x523123
jmp 0x522cad
mov edx, dword [0x546560]
mov ecx, dword [esp + 0x24]
lea edi, [esp + 0x94]
lea esi, [edx - 0xc]
mov ebp, dword [ecx + eax*4]
mov ecx, 0xa
xor eax, eax
mov dword [esp + 0x10], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x90], 2
mov ecx, dword [esi]
mov eax, 0x100
cmp ecx, 1
mov dword [esp + 0x30], esi
jg 0x522cef
cmp dword [edx - 4], eax
jge 0x522d57
mov edi, dword [edx - 8]
cmp edi, eax
mov dword [esp + 0x1c], edi
jle 0x522cfc
mov eax, edi
push eax
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
jne 0x522d0e
xor edx, edx
jmp 0x522d57
lea ecx, [edi + edi + 2]
mov edi, dword [esp + 0x10]
mov edx, ecx
add esi, 0xc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
mov dword [eax - 8], ecx
mov eax, dword [0x546564]
cmp esi, eax
je 0x522d53
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x522d53
push esi
call fcn.00531732
add esp, 4
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x13c]
mov dword [esp + 0x98], edx
lea edx, [esp + 0x90]
mov dword [esp + 0xa0], 0x100
mov eax, dword [esi]
push edx
push ebp
push 0x120b
push eax
call ebx
lea ecx, [esp + 0x10]
call fcn.004055c0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x10]
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x10]
mov word [ecx + eax*2], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x522dfa
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x522dc8
mov edx, dword [0x546564]
add eax, 0xfffffff4
cmp eax, edx
jne 0x522dcf
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x522ddf
mov edx, dword [ecx - 8]
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.00405870
jmp 0x522dfa
lea ecx, [esp + 0x18]
call fcn.00412670
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x90]
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
lea eax, [esp + 0x90]
push eax
push ebp
push 0x120b
push ecx
mov dword [esp + 0xa0], 0x81
call ebx
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x10c]
lea edx, [esp + 0x108]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
push edx
push ebp
push 0x120b
push eax
mov dword [esp + 0x118], 8
call ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov dword [eax + ecx*4], 0
mov ecx, dword [esp + 0x120]
cmp ecx, 1
jne 0x522e7c
mov edx, dword [esp + 0x14]
mov dword [eax + edx*4], 1
mov esi, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x40], eax
xor ecx, ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], ecx
lea edx, [esp + 0x3c]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x44], ecx
push edx
push 1
mov dword [esp + 0x50], ecx
add ebp, 0x3e8
push 0x444
push eax
mov dword [esp + 0x5c], ecx
mov byte [esp + 0x54], 4
mov byte [esp + 0x55], cl
mov dword [esp + 0x50], ebp
call ebx
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x64], 0x20
mov dword [esp + 0x68], 2
xor ecx, ecx
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
jg 0x522f0a
mov edx, dword [eax - 4]
test edx, edx
jge 0x522f57
mov edi, dword [eax - 8]
test edi, edi
mov dword [esp + 0x30], edi
jle 0x522f17
mov ecx, edi
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x522f57
lea ecx, [edi + edi + 2]
mov edi, dword [esp + 0x10]
mov edx, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov dword [eax - 8], ecx
call fcn.00405590
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 4]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x64]
lea ebp, [esi + 4]
push edx
push eax
push 0x440
push ecx
call ebx
mov dx, word [esp + 0x94]
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x64]
mov word [esp + 0x76], dx
mov edx, dword [ebp]
push eax
push ecx
push 0x440
push edx
mov dword [esp + 0x78], 0x40
call ebx
lea ecx, [esp + 0xbc]
call fcn.00522a60
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xe8]
call fcn.005239e0
lea ecx, [esp + 0x88]
push eax
lea edi, [esi + 0x54]
push ecx
mov ecx, edi
call fcn.00523840
mov esi, dword [eax]
lea ecx, [esp + 0xe4]
mov dword [esp + 0x1c], esi
call fcn.00522a80
lea ecx, [esp + 0xd4]
call fcn.00405700
lea ecx, [esp + 0xd0]
call fcn.00405700
mov ecx, dword [esi + 0x24]
mov eax, dword [esp + 0x10]
add esi, 0x24
cmp ecx, eax
je 0x52304e
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x52301a
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x523021
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x52302f
mov edx, dword [eax - 8]
push eax
push edx
mov ecx, esi
call fcn.00405870
jmp 0x52304a
mov ecx, esi
call fcn.00412670
mov eax, dword [esp + 0x10]
mov dword [esi], eax
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 0x28]
lea esi, [edx + 0x28]
cmp ecx, eax
je 0x5230a0
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x523070
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x523077
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x523085
push eax
mov eax, dword [eax - 8]
push eax
mov ecx, esi
call fcn.00405870
jmp 0x5230a0
mov ecx, esi
call fcn.00412670
mov ecx, dword [esp + 0x10]
mov dword [esi], ecx
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x94]
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x5230dd
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x5230dd
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x52310c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x52310c
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x522ca7
mov esi, ecx
dec esi
test esi, esi
mov dword [esp + 0x14], esi
jl 0x52320a
lea ecx, [esp + 0xbc]
call fcn.00522a60
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xe8]
call fcn.005239e0
lea ecx, [esp + 0x88]
push eax
push ecx
mov ecx, edi
call fcn.00523840
mov esi, dword [eax]
lea ecx, [esp + 0xe4]
call fcn.00522a80
lea ecx, [esp + 0xbc]
call fcn.00522a80
lea ecx, [esp + 0x64]
mov dword [esi + 0x2c], 1
call fcn.00522a60
lea edx, [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x44]
call fcn.005239e0
push eax
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call fcn.00523840
mov esi, dword [eax]
lea ecx, [esp + 0x40]
call fcn.00522a80
lea ecx, [esp + 0x64]
call fcn.00522a80
mov ecx, dword [esp + 0x14]
add esi, 0x10
push esi
push ecx
mov ecx, ebp
call fcn.00430530
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
cmp dword [edx + eax*4], 1
jne 0x5231fb
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00523620
mov dword [eax + 0x1c], 0
mov edx, dword [esp + 0x14]
mov eax, dword [ebp]
push 0
push edx
push 0x416
push eax
call ebx
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jns 0x523130
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x13c]
push 0
push 0x468
mov dword [edx + 0x20], ecx
push 0
mov ecx, ebp
call fcn.004468b0
mov eax, dword [esp + 0x24]
push eax
call fcn.00531732
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00531732
add esp, 8
lea ecx, [esp + 0x38]
call fcn.00405700
lea ecx, [esp + 0x138]
call fcn.00405700
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 0x10