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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x522327
push eax
mov al, byte [esp + 0x18]
mov dword fs:[0], esp
sub esp, 0x330
push ebx
push ebp
xor ebx, ebx
push esi
test al, al
push edi
je 0x438017
mov esi, dword [0x5723f4]
neg esi
sbb esi, esi
cmp esi, ebx
je 0x4376fe
mov eax, dword [0x56935c]
mov dword [esp + 0x10], eax
mov ebp, dword [0x5723ec]
mov edi, dword [0x5723f0]
cmp esi, 0xffffffff
mov dword [esp + 0x348], ebx
mov ecx, esi
jne 0x437668
xor edx, edx
cmp edi, ebx
jbe 0x437668
mov eax, ebp
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x437668
inc edx
add eax, 4
cmp edx, edi
jb 0x43765a
mov esi, dword [ecx]
cmp esi, ebx
jne 0x437688
mov eax, dword [ecx + 4]
inc eax
cmp eax, edi
jae 0x437688
lea edx, [ebp + eax*4]
mov esi, dword [edx]
cmp esi, ebx
jne 0x437688
inc eax
add edx, 4
cmp eax, edi
jb 0x43767a
mov edi, dword [ecx + 8]
add ecx, 0xc
push ecx
lea ecx, [esp + 0x14]
call fcn.005091d2
push edi
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
jne 0x4376e2
mov ecx, dword [0x5723ec]
cmp ecx, ebx
je 0x4376e2
mov eax, edi
xor edx, edx
shr eax, 4
div dword [0x5723f0]
mov eax, dword [ecx + edx*4]
cmp eax, ebx
lea ecx, [ecx + edx*4]
je 0x4376e2
cmp dword [eax + 8], edi
je 0x4376d3
mov ecx, eax
mov eax, dword [eax]
cmp eax, ebx
jne 0x4376c4
jmp 0x4376e2
mov edx, dword [eax]
push eax
mov dword [ecx], edx
mov ecx, 0x5723e8
call fcn.00439330
lea ecx, [esp + 0x10]
mov dword [esp + 0x348], 0xffffffff
call fcn.00509099
cmp esi, ebx
jne 0x43762f
mov ebp, dword [0x5723d4]
neg ebp
sbb ebp, ebp
cmp ebp, ebx
je 0x4377bb
mov ebx, dword [0x5723cc]
mov edi, dword [0x5723d0]
cmp ebp, 0xffffffff
mov edx, ebp
jne 0x437739
xor ecx, ecx
test edi, edi
jbe 0x437739
mov eax, ebx
mov edx, dword [eax]
test edx, edx
jne 0x437739
inc ecx
add eax, 4
cmp ecx, edi
jb 0x43772b
mov ebp, dword [edx]
test ebp, ebp
jne 0x437758
mov eax, dword [edx + 4]
inc eax
cmp eax, edi
jae 0x437758
lea ecx, [ebx + eax*4]
mov ebp, dword [ecx]
test ebp, ebp
jne 0x437758
inc eax
add ecx, 4
cmp eax, edi
jb 0x43774a
mov esi, dword [edx + 8]
push esi
call dword [sym.imp.USER32.dll_IsMenu]
mov ebx, dword [0x5723cc]
test eax, eax
jne 0x4377ad
test ebx, ebx
je 0x4377ad
mov edi, dword [0x5723d0]
mov eax, esi
shr eax, 4
xor edx, edx
div edi
mov eax, dword [ebx + edx*4]
test eax, eax
lea ecx, [ebx + edx*4]
je 0x4377b3
cmp dword [eax + 8], esi
je 0x437798
mov ecx, eax
mov eax, dword [eax]
test eax, eax
jne 0x437789
jmp 0x4377b3
mov edx, dword [eax]
push eax
mov dword [ecx], edx
mov ecx, 0x5723c8
call fcn.00439400
mov ebx, dword [0x5723cc]
mov edi, dword [0x5723d0]
test ebp, ebp
jne 0x43771c
mov ebp, dword [esp + 0x354]
xor ebx, ebx
push ebp
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov dword [esp + 0x24], eax
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x40]
mov dword [esp + 0x38], 0x2c
mov dword [esp + 0x3c], 0x16
rep stosd dword es:[edi], eax
call fcn.005099f6
cmp eax, ebx
je 0x4377fe
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x437800
xor eax, eax
push eax
lea ecx, [esp + 0x6c]
call fcn.0050c2bc
mov edi, dword [esp + 0x6c]
lea eax, [esp + 0x68]
neg eax
sbb eax, eax
push 0xff000000
and eax, edi
push 0x11
push eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0x354], 1
call fcn.004123c0
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x108]
push eax
push ecx
mov byte [esp + 0x350], 2
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0x108]
lea ecx, [eax + 2]
cmp ecx, 0x10
jg 0x437866
mov ecx, 0x10
mov esi, dword [esp + 0x350]
add ecx, 4
cdq
sub eax, edx
mov dword [esp + 0x64], ecx
sar eax, 1
add eax, 2
cmp esi, ebx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
je 0x43798f
mov al, byte [esp + 0x35c]
test al, al
jne 0x43798f
push 0x53f0c8
mov ecx, esi
call fcn.00509811
test eax, eax
je 0x437949
push ebx
mov ecx, esi
call fcn.0051433c
mov edi, dword [sym.imp.USER32.dll_GetSystemMenu]
cmp eax, ebx
je 0x4378f5
mov edx, dword [eax + 0x1c]
push ebx
push edx
call edi
push eax
call fcn.00509768
cmp eax, ebx
jne 0x4378de
xor eax, eax
jmp 0x4378e1
mov eax, dword [eax + 4]
cmp eax, ebp
jne 0x4378f5
push 0x572408
call dword [sym.imp.USER32.dll_SetRectEmpty]
jmp 0x437fef
call fcn.005099f6
cmp eax, ebx
je 0x437949
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
cmp eax, ebx
je 0x437949
call fcn.005099f6
cmp eax, ebx
je 0x43791b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x43791d
xor eax, eax
mov eax, dword [eax + 0x1c]
push ebx
push eax
call edi
push eax
call fcn.00509768
cmp eax, ebx
jne 0x437932
xor eax, eax
jmp 0x437935
mov eax, dword [eax + 4]
cmp eax, ebp
jne 0x437949
push 0x572408
call dword [sym.imp.USER32.dll_SetRectEmpty]
jmp 0x437fef
push 0x53f5e0
mov ecx, esi
call fcn.00509811
test eax, eax
je 0x43795e
cmp dword [esi + 0x78], ebx
jne 0x437988
mov ecx, esi
call fcn.00506d15
mov esi, eax
cmp esi, ebx
je 0x43798f
push 0x53f0a0
mov ecx, esi
call fcn.00509811
test eax, eax
je 0x437984
mov ecx, esi
call fcn.00506d15
mov esi, eax
cmp esi, ebx
je 0x43798f
add esi, 0x6c
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x24]
mov ebx, dword [sym.imp.USER32.dll_GetMenuItemInfoA]
xor esi, esi
test edi, edi
mov dword [esp + 0x34], esi
jle 0x437f6c
mov cl, byte [0x570678]
xor eax, eax
mov byte [esp + 0x140], cl
mov ecx, 0x3f
lea edi, [esp + 0x141]
lea edx, [esp + 0x140]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x38]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x3c]
push eax
push 1
and edx, 0xffffffdf
push esi
push ebp
mov dword [esp + 0x70], 0xff
mov dword [esp + 0x4c], edx
call ebx
mov eax, dword [esp + 0x40]
test ah, 1
jne 0x437eec
mov cl, byte [esp + 0x35c]
test cl, cl
je 0x437a10
test al, 4
jne 0x437eec
or ah, 1
test cl, cl
mov dword [esp + 0x40], eax
je 0x437a94
xor eax, eax
lea edi, [esp + 0x140]
or ecx, 0xffffffff
lea edx, [esp + 0x80]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x420
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x90], eax
push edx
push ecx
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x14c]
mov dword [esp + 0x94], 0x3e8
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawTextA]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x80]
sub edx, eax
mov eax, dword [esp + 0x3c]
and edx, 0xffff
shl edx, 0x10
or al, 0x20
mov dword [esp + 0x58], edx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
push 1
push esi
push ebp
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
mov eax, dword [esp + 0x40]
test ah, 8
jne 0x437eec
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esp + 0x24]
call fcn.00509107
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x348], 3
test eax, eax
je 0x437b35
lea edx, [esp + 0x1c]
mov ecx, 0x5723e8
push edx
push eax
mov esi, eax
call fcn.004393c0
test eax, eax
jne 0x437b9a
mov eax, dword [0x5723ec]
test eax, eax
jne 0x437b06
mov eax, dword [0x5723f0]
push 1
push eax
mov ecx, 0x5723e8
call fcn.00439470
mov ecx, 0x5723e8
call fcn.004394e0
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], esi
mov dword [eax + 4], ecx
mov edx, dword [0x5723ec]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edx + ecx*4]
mov dword [eax], edx
mov ecx, dword [0x5723ec]
mov edx, dword [esp + 0x1c]
jmp 0x437b97
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x28]
push edx
push eax
mov ecx, 0x5723a8
mov esi, eax
call fcn.004393c0
test eax, eax
jne 0x437b9a
mov eax, dword [0x5723ac]
test eax, eax
jne 0x437b6a
mov eax, dword [0x5723b0]
push 1
push eax
mov ecx, 0x5723a8
call fcn.00439470
mov ecx, 0x5723a8
call fcn.004394e0
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], esi
mov dword [eax + 4], ecx
mov edx, dword [0x5723ac]
mov ecx, dword [esp + 0x28]
mov edx, dword [edx + ecx*4]
mov dword [eax], edx
mov ecx, dword [0x5723ac]
mov edx, dword [esp + 0x28]
mov dword [ecx + edx*4], eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [eax + 0xc]
call fcn.005091d2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x437eca
mov edx, eax
mov ebp, dword [edx + 4]
test ebp, ebp
je 0x437eca
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, ebp
mov ebp, dword [ebp]
push 0x100
mov esi, dword [eax + 8]
lea eax, [esp + 0x244]
push eax
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetClassNameA]
lea edx, [esp + 0x240]
push str.ToolbarWindow32
push edx
call fcn.004a68d2
add esp, 8
test eax, eax
jne 0x437c58
mov edx, dword [esi + 0x1c]
mov ecx, 6
lea edi, [esp + 0xb0]
mov dword [esp + 0xa8], 0x20
mov dword [esp + 0xac], 0x21
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0xa8]
push eax
push ecx
push 0x441
push edx
call ebx
cmp eax, 0xffffffff
je 0x437c58
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jne 0x437c58
cmp dword [esp + 0xb4], 0xffffffff
jne 0x437c65
test ebp, ebp
jne 0x437bc6
jmp 0x437eca
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x431
push ecx
call ebx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0xb4]
test ecx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x94], edx
je 0x437da6
mov esi, dword [0x5723d0]
mov eax, ecx
shr eax, 4
xor edx, edx
xor edi, edi
div esi
mov eax, dword [0x5723cc]
mov dword [esp + 0x2c], ecx
cmp eax, edi
mov ebx, edx
je 0x437cd0
mov eax, dword [eax + ebx*4]
cmp eax, edi
je 0x437d02
cmp dword [eax + 8], ecx
je 0x437cc6
mov eax, dword [eax]
cmp eax, edi
jne 0x437cb9
jmp 0x437d02
cmp eax, edi
jne 0x437eb9
jmp 0x437d02
lea ebp, [esi*4]
push ebp
call fcn.005096c2
mov ecx, ebp
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [0x5723cc], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [0x5723d0], esi
xor edi, edi
mov eax, dword [0x5723d8]
cmp eax, edi
jne 0x437d48
mov eax, dword [0x5723e0]
push 0x14
push eax
push 0x5723dc
call fcn.005039ac
mov edx, dword [0x5723e0]
lea ecx, [edx + edx*4]
lea ecx, [eax + ecx*4 - 0x10]
lea eax, [edx - 1]
cmp eax, edi
jl 0x437d9f
lea edx, [eax + 1]
mov eax, dword [0x5723d8]
mov dword [ecx], eax
mov eax, ecx
sub ecx, 0x14
dec edx
jne 0x437d39
mov dword [0x5723d8], eax
mov ecx, dword [0x5723d4]
mov edx, dword [eax]
inc ecx
mov dword [0x5723d8], edx
mov dword [0x5723d4], ecx
lea ecx, [eax + 0xc]
mov esi, ecx
xor edx, edx
mov dword [eax + 8], edi
mov dword [esi], edx
mov dword [esi + 4], edx
cmp ecx, edi
je 0x437d75
mov dword [ecx], edi
mov dword [ecx + 4], edi
add ecx, 8
mov esi, edx
dec edx
test esi, esi
jne 0x437d6c
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov edx, dword [0x5723cc]
mov ecx, dword [edx + ebx*4]
mov dword [eax], ecx
mov edx, dword [0x5723cc]
jmp 0x437eb6
mov eax, dword [0x5723d8]
jmp 0x437d48
mov ecx, dword [esp + 0x48]
mov esi, dword [0x572390]
mov eax, ecx
xor edx, edx
shr eax, 4
div esi
mov eax, dword [0x57238c]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x2c], ecx
mov ebx, edx
je 0x437de8
mov eax, dword [eax + ebx*4]
cmp eax, edi
je 0x437e1a
cmp dword [eax + 8], ecx
je 0x437dde
mov eax, dword [eax]
cmp eax, edi
jne 0x437dd1
jmp 0x437e1a
cmp eax, edi
jne 0x437eb9
jmp 0x437e1a
lea ebp, [esi*4]
push ebp
call fcn.005096c2
mov ecx, ebp
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [0x57238c], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [0x572390], esi
xor edi, edi
mov eax, dword [0x572398]
cmp eax, edi
jne 0x437e64
mov eax, dword [0x5723a0]
push 0x14
push eax
push 0x57239c
call fcn.005039ac
mov edx, dword [0x5723a0]
lea ecx, [edx + edx*4]
lea ecx, [eax + ecx*4 - 0x10]
lea eax, [edx - 1]
cmp eax, edi
jl 0x437fc1
lea edx, [eax + 1]
mov eax, dword [0x572398]
mov dword [ecx], eax
mov eax, ecx
sub ecx, 0x14
dec edx
jne 0x437e55
mov dword [0x572398], eax
mov ecx, dword [0x572394]
mov edx, dword [eax]
inc ecx
mov dword [0x572398], edx
mov dword [0x572394], ecx
lea ecx, [eax + 0xc]
mov esi, ecx
xor edx, edx
mov dword [eax + 8], edi
mov dword [esi], edx
mov dword [esi + 4], edx
cmp ecx, edi
je 0x437e91
mov dword [ecx], edi
mov dword [ecx + 4], edi
add ecx, 8
mov esi, edx
dec edx
test esi, esi
jne 0x437e88
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov edx, dword [0x57238c]
mov ecx, dword [edx + ebx*4]
mov dword [eax], ecx
mov edx, dword [0x57238c]
mov dword [edx + ebx*4], eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x94]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x348], 2
call fcn.00509099
mov ebx, dword [sym.imp.USER32.dll_GetMenuItemInfoA]
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x354]
mov al, byte [esp + 0x35c]
test al, al
jne 0x437f59
push 1
push esi
push ebp
lea ecx, [esp + 0xd4]
call fcn.00435da0
lea eax, [esp + 0x68]
lea ecx, [esp + 0xc8]
push eax
mov byte [esp + 0x34c], 4
call fcn.00436150
cmp eax, dword [esp + 0x10]
jle 0x437f2a
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0xcc]
call fcn.004362b0
cmp eax, dword [esp + 0x18]
jle 0x437f45
mov dword [esp + 0x18], eax
lea ecx, [esp + 0xc8]
mov byte [esp + 0x348], 2
call fcn.00435f50
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
mov dword [esp + 0x34], esi
jl 0x4379a7
mov edi, eax
mov al, byte [esp + 0x35c]
test al, al
jne 0x437fef
xor esi, esi
test edi, edi
jle 0x437fef
lea edx, [esp + 0x38]
mov dword [esp + 0x3c], 0x10
push edx
push 1
push esi
push ebp
call ebx
mov eax, dword [esp + 0x40]
test ah, 8
jne 0x437fcb
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x64]
xor eax, eax
and ecx, 0xffff
mov ah, byte [esp + 0x18]
and edx, 0xff
and eax, 0xffff
shl ecx, 0x10
or eax, ecx
or eax, edx
jmp 0x437fcf
mov eax, dword [0x572398]
jmp 0x437e64
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], eax
push ecx
push 1
push esi
push ebp
mov dword [esp + 0x4c], 0x20
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
inc esi
cmp esi, edi
jl 0x437f7d
lea ecx, [esp + 0x98]
mov byte [esp + 0x348], 1
call fcn.00412410
lea ecx, [esp + 0x68]
mov dword [esp + 0x348], 0xffffffff
call fcn.0050c32e
mov ecx, dword [esp + 0x340]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x33c
ret